Game of Hex implementation