One reason for the German surrender in 1918 was that