Bet and Regret Java