i wouldn’t use jquery or any other library for tasks like this. hype essentially offers everything you’ll need.
you may try this: Need your Help with Drag n Drop! …
the example offers a hitcheck (actually for circles, but squares will work fine too), store properties and restore properties. hype itsself has three events when drag occurs: dragStart, dragMove and dragEnd so you’ll be able to manage tasks …