attempt at minmax for tictactoe