I think that the best way to stop gambling once you got addicted is to first of all, give the funds you got left to your friend to keep it away from you.
Admit that you have a problem , and also realize that the house always win, gambling is for entertainment and you will never be able to walk out of the casino as a winner, the casino always win and that's how they make their money.
The casino always wins, that's true, but in fact you are playing not against the casino but against other gamblers. Casino just takes a part, the house edge, but this part is normally a small one compared to what you can actually lose. I mean if it was only the house edge you would lose from 1% to 5% of your deposit depending on the casino. But in many cases we lose everything and that's because we lose to other gamblers are more lucky.
It is not necessary to quit gambling completely, rather you should quit depositing more than you can afford to lose.