I think that if my mind goes to gaming, it's cause what I'm doing right now is boring as hell.
Example, when I was writing a paper on treatments for Somatoform disorders, a freaking awesome subject btw, It had my full attention for about a week.
When I had to write my oral for French class however, you have no idea how often My mind went to playing team fortress 2.