Syntax error on line 18: unpaired '{' .
        if (time >= 30) {
