Can you try to remove last parenthesis on line 60 (where repaint function is decalred)?