How to Gamble and Win