Error within Bubble Machine coding

If you're trying to run everything from that weedy little 9V battery then that's your problem. They can't supply enough current for a motor. And the motor and servos should be powered separately never from the Arduino power pin.

The 9V battery may just run the Arduino on it's own. Rechargeable AA batteries work a lot better for motors and servos.

Steve