def terminate_episode(self) -> bool:
    """Check if the episode should be terminated."""
    for comp in self._components.values():
      if comp.terminate_episode():
        return True
    return False
Check if the episode should be terminated.
concordia/environment/deprecated/game_master.py