Brute force method for generating sudoku worked