added a solution to the problem checking if a sodoku is valid