got pathfinding to work with main player