fixed the pathfinding. I hope