input: Write a python function to simulate a simple text-based adventure game.
  assert adventure_game(['go north', 'go east', 'go south', 'go west', 'quit']) == ["You head north.", "You head east.", "You head south.", "You head west.", "Goodbye, player!"]
  assert adventure_game(['go north', 'go east', 'dance', 'quit']) == ["You head north.", "You head east.", "Sorry, I don't understand.", "Goodbye, player!"]
  assert adventure_game(['quit']) == ["Goodbye, player!"]
output: def adventure_game(commands):
      responses = []
      for command in commands:
          if command == 'go north':
              responses.append("You head north.")
          elif command == 'go east':
              responses.append("You head east.")
          elif command == 'go south':
              responses.append("You head south.")
          elif command == 'go west':
              responses.append("You head west.")
          elif command == 'quit':
              responses.append("Goodbye, player!")
              break
          else:
              responses.append("Sorry, I don't understand.")
      return responses