update pathfinding