fixed nonzero cell problem

fixed the problem where nonzero cells are overwritten.
However, the program prematurely declares it is "solved" when given
complex boards