Cleaned up the maze generation.