I recommend when you generate the enemies that they spawn below the character. Without this the player can sit on the side and most likely never get hit.
Thanks for the tip! I'm still learning gamedev so feedback is always appreciated :D