Sudoku solver code clean up