added pathfinding stuff