You should create an achievement system for observing the rules and performing the necessary checks https://gamedev.stackexchange.com/questions/908