Why was it difficult for the Allies to take the Pacific islands?

Yes, many allied soldiers died in an attempt to turn back the Japanese attempt to take over the Pacific, but the outcome was inevitable.