What helped the UN forces and shifted the war in their favor?