The level is called The Final Kithmaze FYI.
Now to the code itself, your code is 100% correct so far.
After you attack, but still inside the loop, you need add a couple of move commands.
(I'll give you a hint. After you attack, you must have three more move commands. Try a combination of moveDown and moveUp and eventually you'll get the solution (do not try moveRight or moveLeft)). This should be a big enough hint but if you still need help, tell me man.