You only need if else if you need if else.
An if statement starts with an if and then a condition in brackets. If the condition is true or otherwise non-zero the if statement will do whatever is on the rest of the line. The semicolon marks the end of the line. Do you see what you did? (Hint: there's nothing for your if statements to do, your semicolon makes sure of that.) This error is probably causing syntax errors with the lines with braces that are now on their own.
That's not the only thing wrong, just the most glaring.