Added code to wait for a group of 5 before attacking.