Exception in thread AWT-EventQueue-1 in TicTacToe with minimax