add an end game heuristic, and appropriate switch to end game