In May, Allied codebreakers discovered his intentions