Add check and solve sudoku code