This is an effective solution which I also try to do that in my life recently. And the bad thing is, it's become more difficult to get rid of the whole "game" trap, when you continue to play even if you get bored.
I have been employing this method for 3 years and definitely reap the benefit of it. However, the better way is moving away from the environment and think or talk about different topics for a while.