input: def play_tictactoe(game: TicTacToe) -> bool:
      """ Simulates the TicTacToe game by displaying the board after each move and checking if the current player has won.
      The function should return True if the current player wins, and False otherwise.
      >>> game = TicTacToe()
      >>> game.board = [['x', '_', '_'],
                        ['x', '_', '_'],
                        ['x', '_', '_']]
      >>> game.turn = 'x'
      >>> play_tictactoe(game)
      True
      >>> game = TicTacToe()
      >>> game.board = [['x', '_', 'o'],
                        ['_', 'o', '_'],
                        ['o', '_', 'x']]
      >>> game.turn = 'o'
      >>> play_tictactoe(game)
      True
      """
output:     while True:
          game.display_board()
          if game.check_winner():
              return True
          if game.is_full():
              return False
          game.make_move()