Fixed the comparator in AStarSearcher and added the cutoff() check.