implemented attacking