Tell Winston how to make stairs. If you get to the edge before the Princess, you lose. If you make it to the Princess, you win. If, for some reason, you automatically lose, restart the game. If you automatically win, restart the game. If the Princess is below you, put the height in the negatives. If the Princess is to the left of you, put the width in the negatives.
This was a school project given to me by MsDuPriest