attack move + defense code + smart massing code