The pathfinder class now implements A*