WASD or arrow keys to move. If you touch another square, they explode. Explode all squares to move to the next level.
A clone of one of my games on Khan Academy of the same name