Added game loop code to IScreen.