Just a very basic question, shouldn't be too hard to answer, but I couldn't find it anywhere else. (Couldn't think of any keywords)

I have a basic game board, with nine gray circles in it. there are also nine chocolates, and They can be dragged anywhere on the screen. But I need a script so that when a user drops the piece, it slides to the center of the intended spot.

Ex:

on(release) {
stopdrag(this)
this. hit test of circle?
if yes, this._x and this._y = circle1._x and circle1._y

I don't know, something like that. do I need an array? as the smiley says,

CONFUSED