Arrow keys to move. Get to the X. Avoid the squares. The wite squares are ghosts, they can go through walls, the purple square is magical, it can teleport.
Thanks to griffpatch for the turtorial for maze generation.