added pathfinding