regular pathfinding, and threaded pathfinding, working