Texas42 Implementation in C++