implementing attacking
only attacks once