choose_attack_ai() fixed