Greedy search with backtrack (in case an agent gets stuck in a local
heuristics minimum) finished.