I have attached an Image to make it easier to explain. There are 8 spaces and 21 letters/symbols.
I need to the game to have the following functionality:
drag letter on/off a space and the letter snaps to center of the space
letter cant go on a space that already has a letter. If you try drag a letter it will just go back to original position.
letters on one space can move to an empty space but if there is a letter there it returns back to the space it was.
Basically you should be able to drag and drop letters anywhere as long as there is not already a letter there.
Below is working logic for dragging and snapping while also making sure the letter cant go on a space that already has a letter:
The area I am having trouble with is when you drag a letter off a space and have the space's boolean value set back to false so that another letter can be placed there.
Any help would be much appreciated