Originally, I wanted to have the player stomp on the enemies on their heads to defeat them, but I couldn't get that to work properly. So I went with a much simpler method and made it so that the player would defeat the enemies if they fell on them.
Thanks for the comment!