Fix bug where the player's current position was included in pathfinding