Code looks fine on first glance; what problem are you seeing (just getting killed?) You might want to use cleave and make sure you have enough armor to survive.
Hey Kyang,
I had trouble at first too, but used “cleave” to much success. Part of the trick is placing a flag slightly before the enemies to allow them time to bunch up around you AND avoid being hit too much.