Completed the NxN sudoku solver