Move The Box puzzle game solver in c++