Apparenty it was because I forgot to put a use a semicolon while closing a class. Unfortunately there seem to be a ton of other problems. I'm gonna try to figure them out on my own before posting again.
Thanks anyway.