Function to solve a Sudoku adapted.

BUG: Solution of Sudoku breaks and rolls back.