algo for brilliant hunger games