moved attack functions and made a grammar correction