How France lost the war when they invaded Mexico