Need help animating my enemies and collision not working

I’m trying to get this project done and I can not get my enemy animations to work and my character is just walking through them not losing any hit points. The code I’ve used was given to me as a starting point I’ve made modifications to it but the original game did work properly so I dont know where I went wrong. the classes for the enemies are crab and bush Any help would be greatly appreciated.

disregard I submitted as is