fix pathfinding slope algorithm details