The character follows the mouse pointer, you lose the game if you touch the orange blocks, and you win by touching the blue block.
Note, the orange block can spawn at your spawn point aka at the flag corner.