Oh. I noticed that too. It might be a bug. I think the code resets my player after my enemys so if there is an enemy where you are, it hurts you. sorry about that.
Thanks for trying my game though! :)