moved & changed pathfinding according to the new architecture