Mastering the casino challenge: make every gamble count