Understanding the psychology behind why people gamble