Added an algorithm to check if a string is a valid sudoku.