Same as the project below but you don't know your money until the end. If you put in a number of money but gambles left doesn't go down then it means you don't have enough money. https://scratch.mit.edu/projects/1184147398/