The shortest distance to an exit is 16. The shortest distance to an exit is 2. The shortest distance to an exit is 9. That square is a wall. The shortest distance to an exit is 27. The shortest distance to an exit is 6.