A simple puzzle game in C++