Yes indeed I did not implement a control to check if the puzzle could be solved.
That's definitively a feature I would implement if I continue to work on this project :)