Clicking the right square should make the left one go green.

Click me