Monty Hall's Black Market Organs

Application Commentary
Story summary: After a freak ping-pong accident, you are left badly injured and without health insurance. You need a new heart bust must obtain one the cheapest way possible: from some shady characters in a sketchy alley.

The original app is based on the Monty Hall doors problem in which there are three doors; one has a prize, the other two something worthless. A contestant picks one door, then the host reveals one of the worthless doors at which point the contestant can either stay with their door or switch to the other. The goal is to end up with the door with the prize. In my version, you must find the right guy with the heart you need. There are four guys to start. If you find the heart, they will mix themselves up again but with one less person. You must narrow it down to the last guy with the heart you need. There is also an an experimental mode with the wins/losses counter on the bottom so players can experiment with staying vs. switching to learn for themselves which will give them a better chance of winning.
With four characters to start, assuming you switch characters, your chances of picking the right one is 3/4. When you move on to three characters, your chances are 2/3, with two the chances are 1/2. Your chances of finding the heart you need is (3/4)*(2/3)*(1/2) = 25%. However, if your stay with your first choice every time, your chances of winning are (1/4)*(1/3)*(1/2) = 4.2%% Clearly, your chances are much better when you switch, but the user may not know this which is why I included an experimental page with the counter at the bottom like in the original app. You can experiment to see the different probabilities of switching vs. staying.
The setting is in a sketchy alley at night with a brick brick wall as the main backdrop. There is also a dumpster with flies buzzing around it, a flickering light above a door to a slaughterhouse, and a window through which you can see an occasional butcher's knife at work. The doors are changed into guys in trench coats that open their coats to reveal themselves as scammers except the one guy with the heart.
On the home screen, there are three buttons: Play Game, Experimental Mode, and Credits. They all contain event listeners that switch to a different frame in the timeline when they are clicked. The hardest part was adjusting the code so it starts with four guys and only moves on to three if you find the heart. If the wrong guy is chosen, a scammed screen will appear and you can try again. If you win a "you win" screen will appear and then you will be taken back to the main screen. I used the code gotoAndStop(); a lot to transition between frames on button clicks.