Some code cleanup- deleted uncalled repaint() method to avoid confusion