improveHeuristicFour final