fixed a bug in minmax: after cutoff comparison we used -1 instead of the calculated board value