[Pathfinding] Fixed silly mistakes in direction