Implemented singleton for Maze class