Error within Bubble Machine coding

Now the next step is normally to provide some details of exactly what components you are using and a circuit diagram showing how they are connected and particularly how everything is powered.

But first...are you definitely using the (ancient) Adafruit Motor Shield Version 1, which is what that particular library is intended for?

Steve