Your objective is to balance the game fields, that is, all squares have to be the same color. One color is guaranteed to achieve the result, others may or may not solve it.
By clicking on the square on the left you cycle its color along with two other squares on the right. The same process applies clicking on a square on the right. Triplets of squares are randomly selected at the start of the game.
By observing the triplets you can work out the order in which to click the squares to achieve balance.