JS || Solution by Bharadwaj
Code\n\nvar stoneGameIX = function (stones) {\n    let y = Array(3).fill(0);\n    for (let x of stones) y[x % 3]++;\n    y[0] %= 2;\n    if (y[0] == 0) {\n     
# Code\n```\nvar stoneGameIX = function (stones) {\n    let y = Array(3).fill(0);\n    for (let x of stones) y[x % 3]++;\n    y[0] %= 2;\n    if (y[0] == 0) {\n        if (y[1] == 0 || y[2] == 0) {\n            return false;\n        }\n        return true;\n    }\n    return Math.abs(y[1] - y[2]) <= 2 ? false : true;\n};\n```
['JavaScript']