Improved heuristicX calculations

The heuristicX calculations are better now, with test cases 1 and 3 both
correctly mating in 2 moves. However, test case 2 is more difficult and
sometimes results in infinite back-and-forth moves between the two
players' kings which never result in a resolved game state.