input: 
  def TicTacToe():
      """A class to create a TicTacToe game in Python. This game allows two players to play the game,
      where each player is represented by 'x' and 'o', and the game board is a 3x3 grid.
      The game moves are made by invoking methods that alter the board and check if a player has
      won by completing a row, a column or diagonal.
      Example:
      t = TicTacToe()
      t.display() ->
      _ _ _
      _ _ _
      _ _ _
      t.check_win() -> False
      """
  
output:     
      board = [['_' for _ in range(3)] for _ in range(3)]
      current_player = 'x'
  
      def display(self):
          for row in self.board:
              print(' '.join(row))
  
      def make_move(self, row, col):
          if self.board[row][col] == '_':
              self.board[row][col] = self.current_player
              self.current_player = 'o' if self.current_player == 'x' else 'x'
          else:
              print("Invalid move, try again.")
  
      def check_win(self):
          for i in range(3):
              if self.board[i][0] == self.board[i][1] == self.board[i][2] != '_':
                  return True
              if self.board[0][i] == self.board[1][i] == self.board[2][i] != '_':
                  return True
          if self.board[0][0] == self.board[1][1] == self.board[2][2] != '_':
              return True
          if self.board[0][2] == self.board[1][1] == self.board[2][0] != '_':
              return True
          return False
  