Removed IO in maze_navigator