Quadris game in C++