Sudoku to grid, supposed to work