Syntax error on line 18: unpaired '{' .
        if (current_state == start) {
