Added switch functionality to the Main class. Corrected an error in the newMaze() function of the Maze class.