Game engine for sudoku (sizes 4, 9, and 16)