With gaming, I've started to allow myself play only during Friday evenings and Saturdays. It's like a reward after whole week. Also I play only on the computer, got rid of mobile games completely because of ads and in app purchases and a bad habit of playing in the bed. And interestingly, for a month I haven't played at all, although I could.