If i read the tutorial at adafruit you should use the 5v power of the raspberry at pin 16 to provide power for the chip logic. You should use the battery pack only to power the motors. Same holds for the GND of the pi. Otherwise the chip cannot detect the value of the gpio pin.
Hope this helps!