first, change the betting amount then, bet on the dice finally ,repeat until you have $5,000 or lose your money