Resetting all nodes before validating solution