Bug with reporting wrong number of total_attacks fixed
1. global variable total_attacks = 0  declared
2. continue command is commented