match3 game in C++