Phaser already has a damage function built in