Maze tidying