Added methods to Maze.