repaint on timeTick function and make timeTickThread always run