Syntax error on line 13: unpaired '{' .
        if (state == GREEN) {
