Compartmentalize. Teach your brain what to do and what not to do; when to do and when not to do.
It needs some “permutations and combinations” for it to work in the right way. It’s a really important exercise to make a change and achieve something in your life; something that you desire.
Of course, it cannot happen in one night, it’s gonna take time. Your mind is a programming machine; you can program it the way you want but it takes consistency for a desired outcome.
So never give up.