fix bug related to cannotAttack. AttackStrategy working