TicTacToe based on java and AI