Added function estimateAttackingTroops.