Thank you for the nice comment! To avoid being hit, the optimal strategy would be to hit the enemy when he's not attacking and then quickly dodge back. Though, I admit, it is pretty hard to pull off when you are not the developer, I guess :)