Cooperative heuristic multi-agent planning