Unraveling the psychology behind gambling behavior