simple and clear C++
\nclass Solution {\npublic:\n    bool stoneGameIX(vector<int>& stones) {\n        vector<int> count(3, 0);\n        \n        for (auto val: stones) \n         
```\nclass Solution {\npublic:\n    bool stoneGameIX(vector<int>& stones) {\n        vector<int> count(3, 0);\n        \n        for (auto val: stones) \n            ++count[val % 3];\n        \n        if (count[0] % 2) {\n            return abs(count[1] - count[2]) > 2;\n        }\n        \n        return count[1] != 0 && count[2] != 0;\n    }\n};\n```
[]