Unraveling the psychological factors that drive gambling behavior