heuristic_search nearly ok