So basically we advance depending on the scores of the last games- right? If we keep from getting blown out, and the other game doesn't turn into a blowout, we may be in good shape?

My figuring: IF we can avoid anything worse than 0-1 loss to Germany,
And Portugal wins by 3-0 or lower
OR Ghana wins 1-0

OR Ghana/Portugal tie, our game won't matter then. That would be best-case scenario if we lost to Germany.

Of course, just beat Germany and the other game doesn't matter...