Which river was crucial to the logistics of the battle?