a cannon is used in war