I Resolved it, it actually said that on line 516 there is an unexpected token 'done'. So after done I added a } and VOILA!!! It took me at least two hours to figure this out but hé I am a beginner but I learned a lot from it.