Added mapMazeToGraph()