Added a damage function