tests of minmax algorithm