Suppose a contest owner registers the following two type of prizes. Suppose the contest owner inputted three prizes into the script like shown below: The first player( Mike ) comes to the game. Now the script has to create cards for him to play. Take a look at the "# of pairs in a game" This is the specification about how many pairs will be placed in a game. Let's collect cards to display. First, we take 1 pair of dog: Then we take 2 pairs of cat. Totally 6 cards. So Mike will see 6 cards like this: If he plays the game to the end, he may see something like this. Note that the position of each picture was randomly selected by the script. Now, let's pay attention to "in Stock" The "in Stock" of Polaroid changes from 4 to 2. The "in Stock" of Chromebook changes from 2 to 1. The "in Stock" of Apple Watch changes from 1 to 0. Another player( Jim ) comes to the game. The script has to create cards for him to play. Like the last time, we first take 2 pairs of Polaroid Then we take 1 pair of Chromebook There are no more Apple Watch in stock, so we give up including Apple Watch in the game. OK, totally 6 cards. Jim will see cards like this: If he plays the game to the end, he may see cards like shown below: Now let's check the "in Stock" of each prize. All of them are 0. Now another player ( Maggie ) comes to the game. The script has to create cards for her but there are no more prizes so the script display a message like OUT OF STOCK and so she can't play the game. OK, I finished explaining about how the script displays cards. Is your understanding the same as mine?