Find out the code of determine the requirement to pass the level. In order to let each level become more difficult and challenge. Now, player need to achieve the requirement, for example, The total score of cherry shoud be 5, total score of gem should be 6. Then, player can enter next level. Here is the code: