Working implementation of sudoku solver