getOptimalMovementLine

When using scaffold the player wants to follow the line and the scaffold should support them in doing so. This function calculates this ideal line that the player should move on.