LibGDX - Items and itembox?

Hi,

In the first picture you can see 5 images (crown, book, key, sword, heart) and a red circle (the red circle shows the touch on the screen).

I show the 5 images with SpriteBatch on the Screen.

Picture 2: Now, when I touch on the crown and swipe the finger on the screen, I want to move the crown. How can I do this? What’s the keyword for that?

And when my finger is in the near of the itembox, it automatically shows a transparent image of the selected Item.

Picture 3: And now, when I move my finger to the right, the book item moved to the left automatically.

Picture 4: Now when I release my finger (look picture 3 for the position), the crown item snaps in the item box. How can I do this? Where can I find snap algorithms. What are they called?

Are there good tutorials or open source code snippets for that?

Thanks!