Solves a given sudoku puzzle