update function SudokuSolver::makeElements