tic tac toe with AI in Java | minimax algorithm