Admiral King put Admiral Chester W. Nimitz, based in Hawaii, in charge of the Pacific War against Japan. The Imperial Japanese Navy had the advantage, taking the Philippines as well as British and Dutch possessions, and threatening Australia but in June 1942, its main carriers were sunk during the Battle of Midway, and the Americans seized the initiative. The Pacific War became one of island hopping, so as to move air bases closer and closer to Japan. The Army, based in Australia under General Douglas MacArthur, steadily advanced across New Guinea to the Philippines, with plans to invade the Japanese home islands in late 1945. With its merchant fleet sunk by American submarines, Japan ran short of aviation gasoline and fuel oil, as the US Navy in June 1944 captured islands within bombing range of the Japanese home islands. Strategic bombing directed by General Curtis Lemay destroyed all the major Japanese cities, as the US captured Okinawa after heavy losses in spring 1945. With the atomic bombings of Hiroshima and Nagasaki, the Soviet invasion of Manchuria, and an invasion of the home islands imminent, Japan surrendered.