Understanding the social dynamics of gambling communities