Replaced pathfinder class with main method, pointer to member function caused issues