memes aside, i also had the same issue at some point in school. fucked up some of my grades cus i kept playing tb
the only thing i can tell you is try to really focus on school first and leave vidya for later
if you dont have enough willpower just delete the damn game until you're done with your projects