As an adult who will avoid doing things by playing games, or getting on Blurtit, I can tell you it has nothing to do with being in elementary school. You need to create a schedule and stick to it. Plan on studying or doing research for 25 minutes and then allow yourself 5 minutes of games. Set a timer on your computer or whatever device you are using to go off at those intervals and stick to them. You will get your work done and get a bit of fun in.
I do middle school debate but am in elementary. Either way you have to do a lot of research. I don't know if being in elementary has anything to do with it, but, I have this habit of playing games hoping no one will catch me. How do I stop this habit?
I don't know why people ask "how do I stop doing {this thing}?"
It's VERY simple: Don't do it.
Nobody is making you play games.
Stop acting like you can't control yourself.