Moved Pathfinder for the AI to use in common