Refactor sudokuGrid