My problem was quite an easy one (the only effective solution is a bit self-evident), but writing it proved to be a real challenge! I hope I have managed to describe the work in a way that can be understood...
If there is something totally weird or ununderstandable, please ask. The basket-thing itself is totally doable in RL, but describing it with broken English seemly isn't.