What was Andrew Jackson’s rank at the time of the battle?