Removed unused code from attack_defend