You’re definitely on the right track, hope this helps!
Hint
Based on the screenshot, it looks like you've already figured out a way to navigate with the pumpkins while not attaching to them. If you're having trouble getting them to end up where you want (or having them get stuck against walls), it's probably due to parity. Take note of how much you need to move the pumpkins to avoid attaching and toy with the setup accordingly (there is a bit of freedom in how you do this part).