Making some other motives and objectives in life will help,try to work only for them and transfer your all focus towards it.It can be studies,job,business or sports.Do something which gives you fun and pleasure and keep busy yourself busy in that instead of gambling.