This is a mini game I want to put in a bigger game so please tell me how it works. Instructions: click on a door one has gold and the other has a monster if you get the gold you may choose to bank it or continue. If you continue you do another round with more gold if you choose to bank it you keep all the gold you got. If you get a monster you loose all your unbanked gold. The making variable tells you how much gold you will get that round, the gold earned variable shows you unbanked gold, and the gold variable shows you banked gold