Use arrow keys to move, and try to avoid the swords. P.S Touching to edge puts you back to the middle
Thanks to 900miles, who came up with the main script to make him move.