add manhattan distance heuristic