C++ implementation of mjai server