created methods to format sudoku into an array