Sedma Game implementation in C++