Finished the algorithm to solve the sudoku puzzle.