adding pathfinding