input: def play_tic_tac_toe() -> str:
      """This function creates a game of TicTacToe. It initializes the board and allows players
      to take turns marking positions on the board. The game checks for a win condition after each move.
      If a player wins, it returns the winner (either 'x' or 'o'). If all positions are marked without a win,
      it returns 'draw'.
      >>> tic_tac_toe = TicTacToe()
      >>> tic_tac_toe.move(1, 1)
      >>> tic_tac_toe.move(0, 0)
      >>> tic_tac_toe.move(2, 0)
      >>> tic_tac_toe.move(0, 2)
      >>> tic_tac_toe.check_win()
      'draw'
      """
output:     
      board = [[' ' for _ in range(3)] for _ in range(3)]
      current_player = 'x'
  
      def print_board():
          for row in board:
              print('|'.join(row))
              print('-' * 5)
  
      def check_win():
          for row in board:
              if row[0] == row[1] == row[2] != ' ':
                  return row[0]
          for col in range(3):
              if board[0][col] == board[1][col] == board[2][col] != ' ':
                  return board[0][col]
          if board[0][0] == board[1][1] == board[2][2] != ' ':
              return board[0][0]
          if board[0][2] == board[1][1] == board[2][0] != ' ':
              return board[0][2]
          return 'draw' if all(board[i][j] != ' ' for i in range(3) for j in range(3)) else None
  
      while True:
          print_board()
          row = int(input(f"Player {current_player}, enter row (0, 1, 2): "))
          col = int(input(f"Player {current_player}, enter column (0, 1, 2): "))
          if board[row][col] == ' ':
              board[row][col] = current_player
              winner = check_win()
              if winner:
                  print_board()
                  return winner
              current_player = 'o' if current_player == 'x' else 'x'
          else:
              print("Position already taken, try again.")
  