getting the screen to refresh properly on draw