Need help on level 42 kithgard dungeons

I started to do my code and kept changing a few things in the code because of the enemies but I can never get past the enemy. I spent 3 days trying to work it out but nothing happened , please give some help.
Here is my code:
screen shot prob 11111