Texas 42 Implementation in C++