The transformation of gambling A historical perspective on its evolution