Sorry if I'm making lots of threads.

If I have drag and drop objects that belong to one of the groups. group 1, group 2 and group 3.

And I want to drag them to box A, B or C.

When I drag an object to Box A I want to check if the object belongs to group 1.

If it is correct 1 is added to the score.

How would I do these checks?