How did japan enter the war?