Series and parallel connection of battery packs with wires