Press the crate to uncrate. Press the flag to uncrate again
I cleaned up the original list of if statements and added a test to see if the random number is the same as for the sprite that is showing. If it is, I keep getting a random number until it is unique