adds game loop to model