Fix UnitPath end turn calculation