def terminate(
      self,
      game_master: entity_lib.Entity,
  ) -> bool:
    """Decide if the episode should terminate or continue."""
Decide if the episode should terminate or continue.
concordia/environment/engine.py