Understanding the mental health implications of gambling a comprehensive analysis