updated enemy class with working takemdage function