detect digit from sudoku