The shootout was a thrilling climax to a game in which England teetered on the brink of elimination, only to snatch victory from the jaws of defeat.