attempting to fix heuristic and greedy best first search