C++ version of Reversi