It sounds like Japan is going to ambush Midway. We should surprise them instead.
U.S. Prepares To Surprise Japan
Japan had planned to ambush the United States' base at Midway Island, have more ships waiting nearby lure American aircraft carriers, then use the waiting ships to surprise and destroy them.
Japan Prepares Their Surprise
The United States intercepted a Japanese radio message and decoded it, and learned in advance what Japan was planning to do. As a result, they were able to prepare for the attack and keep their aircraft carriers safe.
Knowing Japan's plan, the United States sent their ships and aircraft carriers to the oceans near Midway, where they would surprise the Japanese ships intended to surprise the U.S.
Japan brought their ships and aircraft carriers toward Midway. They didn't know that the United States had intercepted their message and were expecting the attack.
The United States surprised Japan before their attack, and did significant damage to their navy. There was no fighting on Midway.
The war in the Pacific turned after the Battle Of Midway. Japan's forces were damaged, and they were defending for the rest of the war. The United States was able to begin attacking offensively, closer to the mainland.