Implemented *almost* all of the maze algo