Chess is also a subject I like. I've been addicted to it since I was in school. But I never played it online because I wanted to quit this game. It took me too much time and too much thought to play.
I'm currently gambling online with cryptocurrency. It makes me passionate. I play it when I work and when I get home. It really makes me lose focus at work. Many times, my work does not achieve good results due to the influence of online gambling. I may have to delete that app again from my phone. But I deleted and redownloaded it many times . I don't know how to limit it to reduce its impact on my daily work.
Addiction is hard to get out of, but you can start one day at a time.
The key thing is to analyze your behavior and realize where is the trigger that makes you want to do the thing.
Then decide to do something else instead whenever you get that urge. If you swap a bad one with a good one, that still makes you motivated, then you can be able to stop the loop.