These epic American blunders made this an unwinnable war.