input: Write a python function to simulate the game and replace raw_input with input function in the code provided.
  assert isinstance(TextGame, type)
  assert hasattr(TextGame, 'start_game')
  assert hasattr(TextGame, 'print_intro')
  assert hasattr(TextGame, 'level_one')
  assert hasattr(TextGame, 'level_two_left')
output: class TextGame:
      def start_game(self):
          self.print_intro()
          choice = input("You are in a dark room. Do you want to go 'left' or 'right'? ")
          if choice == 'left':
              self.level_one()
          else:
              print("You fall into a pit and die. Game over.")
              
      def print_intro(self):
          print("Welcome to the Text Adventure Game!")
  
      def level_one(self):
          print("You have entered a forest. There is a path leading deeper into the forest.")
          choice = input("Do you want to 'follow' the path or 'turn back'? ")
          if choice == 'follow':
              self.level_two_left()
          else:
              print("You have decided to turn back. Game over.")
  
      def level_two_left(self):
          print("You find a treasure chest!")
          choice = input("Do you want to 'open' the chest or 'leave' it? ")
          if choice == 'open':
              print("Congratulations! You found the treasure. You win!")
          else:
              print("You decide to leave the treasure. Game over.")