Box Puzzling Problem Solver by Hysteresis Neural Networks