Coding help - page 2

 

Thanks.


The buttons have the correct colors at initialization. However, as we move on and a pair which was initially red reverses direction, the color still remains red.

Similarly, a pair which was initially blue reverses direction, the color does not change and still remains blue.

Reason: