The shortest path to a solution is to end the occupation.
If you want to obtain a straight line, you take the shortest path.