It's hard to read the code in that state. Edit your post, or repost it with using "code" tags. Put
at the start of the code and at the end. Be careful to indent your code properly.

I'm...