input: Write a function to implement a TicTacToe game in Python. The function should initialize the game with an empty 3x3 board, allow players to take turns placing their symbol ('x' or 'o') on the board, display the current state of the board, and check if a player has won the game. If a player has won, the function should return True; otherwise, it should return False.
  assert TicTacToe().check_win() == False
  assert TicTacToe().check_win() == False
  assert TicTacToe().check_win() == False
  assert TicTacToe().check_win() == False
  assert TicTacToe().check_win() == False
output: def check_win(self):
      for row in self.board:
          if row[0] == row[1] == row[2] and row[0] != ' ':
              return True
      for col in range(3):
          if self.board[0][col] == self.board[1][col] == self.board[2][col] and self.board[0][col] != ' ':
              return True
      if self.board[0][0] == self.board[1][1] == self.board[2][2] and self.board[0][0] != ' ':
          return True
      if self.board[0][2] == self.board[1][1] == self.board[2][0] and self.board[0][2] != ' ':
          return True
      return False