MazeGeneration explanation