fixed some bugs n semicolons
Forgot a var
Fixed a syntax error