changed canBeHurtBy method and added it to Unit