The Maze class