def get_controlling_group_according_to(life, camp_id):
	_best_group = {'group': None, 'score': 0}
	_camp = life['known_camps'][camp_id]
	
	for group in _camp['snapshot']['groups']:
		if not _best_group['group'] or _best_group['score'] > _camp['snapshot']['groups'][group]:
			_best_group['group'] = group
			_best_group['score'] = _best_group['score']
	
	return _best_group['group']
dataset/ETHPy150Open flags/Reactor-3/alife/camps.py/get_controlling_group_according_to/swapped operands of `>`