input: 
  def TicTacToeGame():
      """ Create a TicTacToe game that allows two players to play against each other.
      The game keeps track of the board, whose turn it is, and checks for a winner.
      The game board should be displayed after each move, and the game should stop
      when a player wins or the board is full.
      >>> game = TicTacToe()
      >>> game.display()
      _ _ _
      _ _ _
      _ _ _
      >>> game.turn
      'x'
      >>> game.check_win()
      False
      """
  
output:     
      board = [['_' for _ in range(3)] for _ in range(3)]
      turn = 'x'
  
      def display():
          for row in board:
              print(' '.join(row))
  
      def check_win():
          for row in board:
              if row[0] == row[1] == row[2] != '_':
                  return True
          for col in range(3):
              if board[0][col] == board[1][col] == board[2][col] != '_':
                  return True
          if board[0][0] == board[1][1] == board[2][2] != '_':
              return True
          if board[0][2] == board[1][1] == board[2][0] != '_':
              return True
          return False
  
      def is_full():
          return all(cell != '_' for row in board for cell in row)
  
      def play():
          while True:
              display()
              row, col = map(int, input(f"Player {turn}, enter row and column (0-2): ").split())
              if board[row][col] == '_':
                  board[row][col] = turn
                  if check_win():
                      display()
                      print(f"Player {turn} wins!")
                      break
                  if is_full():
                      display()
                      print("It's a draw!")
                      break
                  turn = 'o' if turn == 'x' else 'x'
              else:
                  print("Cell already taken, try again.")
  
      play()
  