Please start by reading the [instructions for posting]( how to post code), then edit your code post (use the "pencil" icon below the post) to use "code" tags so we can read it properly.
Note you need to use "Auto-Format" (Ctrl-T) on the code in the IDE first.