Fixed solve bug

Fixed a bug where a square would not become valid when clearing it out,
thus the solve button would not work.