What countries lost territory to Japan early in the war?