How to Have Time to Do Homework?

What do students need to do in order to have time to do his homework when he wants to play with friends or go through new levels in the game?