Corrected the pause feature, to make sure that everything (except drawing the graphics) is actually paused