Add solve sudoku function