Tile matching puzzle game in C++