Solves a sudoku puzzle when shown one.