made the Time class able to call repaint in the display object