I have developed a basic Puzzle game in Android Studio where user can select an Image and the App breaks the image into puzzle pieces. The user then drags the pieces into a frame and places them in the correct positions until puzzle is complete. when any piece is close to its x y position, it will snap into position with a click sound. What I'm trying to achieve is if user has no idea where the puzzle piece must go, they can drag the piece into a "Question Box" and then answer a question. If they answer the question correctly, the piece will automatically be placed in its position.
The user has two choices: Build the puzzle by dragging and dropping puzzle pieces into the positions (which I have already developed) or answer a question and if correct, the piece will automatically position itself in the correct place of puzzle (Which I need developed)