Tic-tac-toe (American English), noughts and crosses (Commonwealth English and British English), or Xs and Os/“X’y O’sies” (Ireland), is a paper-and-pencil game for two players, X and O, who take turns marking the spaces in a 3×3 grid. The player who succeeds in placing three of their marks in a diagonal, horizontal, or vertical row is the winner. It is a solved game with a forced draw assuming best play from both players.https://en.wikipedia.org/wiki/Tic-tac-toe
The first player ‘X’ can force a win if the second player ‘O’ chooses an edge rather than a corner in response to X beginning with the middle square as shown below:
X then chooses the lower right box forcing O to choose upper-left box, which forces X to choose the lower right box. At that point O has to choose between the bottom edge or the top-left corner. In either case X wins by choosing the option O did not choose.
If O had chosen a corner rather than an edge then neither will loose simply by preventing the other from winning in the next move. If X has two boxes in a line with third empty than O prevents the X from winning just by taking the empty box. Likewise for X. If that situation does not arise then choose a corner and if none is available chose any.