If any one comes in here and bashes gamblers that have issues,they really are showing their lack of understanding of how the brain works.
That said I suggest you replace gambling with a more healthy alternative like wallking/Jogging or working out. The cardio aspect will work better here imo than the short amount of time you can actually spend in a gym. Combining them would be way better.
As for the issue you can dwell on it and try to find out why you are this way and quite often its a cycle that never gets to the core of the issue. Look at the success rate of gamblers anonymous or any other group that rehashes the issues and you will see they do not have the highest success rates.
Hollywood has done a good job of misleading and propping up that aspect for a long time.
Your best bet is to figure out how the reward system works in your brain and go from there. Dont beat yourself up and dont get into the poor me,just attack it like a pitbull.