You use the purple square to block the spikes from hitting the balloon. The square follows your mouse.
I copied this idea from Hooda Math so a big thanks to Hooda Math!