fighting game

so im having some issues in my game, one of the issues is that when player 1 hits player 2 (it’s an automated attack every 2 seconds) the score doesn’t go up. here is the link for my game.

I know there is some pretty obvious bugs, any fixes with that will be appreciated.