Update the heuristic value of new states