moved attacking to its own script