Improve MazeGenerator helper methods