I got the question right, and it registered as correct, but after refreshing my answer is no longer the answer I had written before. I am still registered as "correct", but I lost my actual answer :(
@Nima, you should be able to see all your previous answers by clicking on "Submissions" above the code editor.
This is getting server errors.
@Bantha, sorry there was an issue with some very long games. I lowered the maximum number of moves to 130 and removed some enemies.
Do you have solution? I think I move quite optimally, but I only able to reach entrance to final cave
Same problem as egor.
Well the solution may have been a little too specific with the 130 limit, so I removed a couple enemies. (Still not easy though.)