Sample code for maze.

Used this code to complete the maze a few times.