Sudoku Solver: refactor, using cast to transform num from int to char