refactor maze
refactor maze