Thread Shed error

Please post your formatted code so people can help you debug it.

Also, this guide might be of some help:

And this one too. Particularly the Do’s and Don’ts section: