I managed to reach the exit!
It took a bit for understanding the game (on my first times I was losing health for every move without understanding why), but then I got the hang of it.
It’s a good job and with the stuff you added in the comment it will be even better (like putting the @ for the character position, putting the commands in the game and not only at the beginning, better maze generation, so you can avoid situations like being on bombs and skeletons in the first position and so on).
Congratulations!