The motor shield can control four motors, but this car only uses two motors. This picture shows the left motor connected to the M1 terminals and the right motor connected to M2 terminal. The battery pack is connect to the external M+ and GND of the motor shield, not the Arduino. The power to the Arduino now comes through the shield