if it returns false undo the number. If you havent tried all available numbers try again with another. Otherwise return false. There are soduku generation resources online but not too many. Think I found a pdf something like puzzles from easy to evil or something like that. I would look for that if you can find it.