Completed first iteration of the sudoku solver.