I guess it's a simple matter of mismatched braces, but without being able to see your code, it can only be a guess. Please post your sketch in code tabs by using this button: