processGridMistakes
open fun processGridMistakes(grid: List<List<T>>, mistakesMethod: MistakeCheckingMode, dimension: Dimension): List<List<T>>
Processes the grid to check for mistakes and convert it back to the original grid type.
Return
The updated grid with potential mistake annotations.
Parameters
grid
The grid to process.
mistakesMethod
The method used to check for mistakes.
dimension
The dimension used for Sudoku rules.