'Just' is redundant, and the sentence is a conundrum, since if you stay home you cannot go to school. Try this: I confined myself to going to school and returning home.
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.