Refactor HexGame class