I relapsed, and I feel really disappointed

So the story goes like this, I was feeling down and depressed for a couple of weeks, had a bad week at work, and the only thing I thought was... fuck it ill play small,

I actually won around 10k pesos then withdrew 8k yesterday. I was like 'ok it's good, you didn't fall into the trap of chasing more'

Then today I was like, let's play for fun, so i lost the 2k and borrowed 2k on M easy credit, won around 5k paid the 2k borrowed,

then i got bored after doing work so i played, lost all then borrowed the 2k again and lost it all.

I feel a bit shitty but a bit relieved that I put a stop to chasing money again, because the last time i relapsed my debts ballooned to 80k (i was 17k away from being debt free the last time which is also my current position now) .

It's really hard and challenging when you frame yourself as a gambler, it never leaves your mind.

To the people who have successfully broke free from this dilemma, what did you do to get rid of this identity?