How did the Americans lose at the battle of Charleston?