Sounds like a logic problem. Are there variables with incorrect values causing it to happen? Have you tried debugging by adding some println statements that print out the values of the variables that control the logice flow for what is happening?once the puzzle is solved I have a message pop up that says the puzzle is solved but then once I go to shuffle the board again sometimes that message will appear again then the board will shuffle