input: Write a function to create a TicTacToe game in Python. The game should be represented as a class with methods for initializing the game board, displaying the board, and checking for a win condition.
  class TicTacToe:
      pass
  assert TicTacToe.display("Expected output when board is empty")==None
  assert TicTacToe.check_win("Expected output for a win condition")==True
  assert TicTacToe.check_win("Expected output for a non-win condition")==False
output: class TicTacToe:
      def __init__(self):
          self.board = [[' ' for _ in range(3)] for _ in range(3)]
  
      def display(self):
          for row in self.board:
              print('|'.join(row))
              print('-' * 5)
  
      def check_win(self):
          for row in self.board:
              if row[0] == row[1] == row[2] != ' ':
                  return True
          for col in range(3):
              if self.board[0][col] == self.board[1][col] == self.board[2][col] != ' ':
                  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