Intelligent gambling: How to treasure your casino wins