Create a Tic Tac Toe game. In this game, two players alternate placing Xs and Os
into a grid until one player has three matching symbols in a row, either horizontally,
vertically, or diagonally. Create a game in which the user is presented with a threeby-
three grid containing the digits 1 through 9. When the user chooses a position by
typing a number, place an X in the appropriate spot. Generate a random number for
the position where the computer will place an O. Do not allow the player or the
computer to place a symbol where one has already been placed. Figure 9-26 shows
the first four windows in a typical game. When either the player or computer has
three symbols in a row, declare a winner; if all positions have been exhausted and no
one has three symbols in a row, declare a tie. Save the game as TicTacToe.java.
You are required to develop this game using NETBEANS as the interface.