So I'm creating a horse racing game where in the beginning, the user bets on a horse (each bet is worth a certain amount of money) and if that horse wins, the user wins money (and if not then no money is earned). The game ends when the user reaches a certain amount of money (User Wins) or goes bankrupt (User Loses). However, I am unsure of how to do add in interactivity like that and for the horse to reset each time without resetting the money. If anyone has a program that runs a similar code or advice on how to get it to work, it would be very much appreciated. Thanks in advance!