Implemented Timer and solved repaint Issues