Understanding the psychology behind gambling behavior and its consequences