fixing up MazeGen