Game of Hex in C++