Alliance Formation and General Deterrence