The Key of the Maze: The role of mental imagery and cognitive flexibility in navigational planning