implemented alternating attacks