i think if we don't want to gamble , we need to find new activity in our free time until our mind stop thinking about gambling, and then we can fill our free time by joining social club and go to church more often, but the most important thing is determination to stop
The actual problem is your other activities will not compensate the eagerness, you are having for gambling. The activities must be more entertained than gambling so that your focus will not turn back to gambling anymore.
Otherwise, after finishing up your new activities, you may come back to gambling due to your irresistible gambling addictions.