Simple puzzle game in c++