You might have missed the format of the flowchart. If you follow the arrows, you'll notice that for Japan and Germany one would answer "Yes" to "Have you been invaded by the US?" and then "Sorta" to "Did they ever leave?" (we still have military bases). That would take you on to the next question- "Axis power in WWII?" So yes, I remembered that we did invade axis powers.