"Added Unit.canAttack with getter and setter."