This is algorithm sample, most will use in GameRuleArchitecture.