PathFinder class implementation