The economics of gambling