Arrow keys to move or wasd. The square that the player lands on is flipped. Turning the grid any solid color will work. I added a timer, levels counter, score, high scores and wasd. Click on new puzzle when you've completed one to move on.
most of the code was done by catblocks2000 but I added most of the extra elements.