Find an exit in the labyrinth