moved main window clear/show stuff into a GameLoop class