This is a helpful picture
but I think after considerable testing that the red and yellow wires are backwards. According to my wiring diagram
the red wire should drive the spin solenoid and the yellow wire should drive the agitate solenoid. And if I'm not mistaken the spin solenoid is on the left (when viewed from the rear) and the agitate solenoid is on the right (when viewed from the rear). Since your picture is also a rear view, the red wire should be on the left and the yellow wire should be on the right. Isn't that so? If not, please tell me where I went wrong.