Who was chosen to lead the armies of the confederacy?