Multiple fixes to AI move returns and heuristic calculations.