Now the pathfinding seems to work.