evaluate node instead of state for heuristic function