a cannon is used for war