Syntax error on line 15: unpaired '{' .
        if (time % 30 == 0) {
