input: Write a function to implement a TicTacToe game in Python. The function should initialize the game board, display the board, and check if a player has won. The function should return True if a player has won, otherwise 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 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