JavaScript - JS
\n/**\n * @param {string} colors\n * @return {boolean}\n */\nvar winnerOfGame = function (colors) {\n  let a = 0;\n  let b = 0;\n\n  for (let i = 1; i < colors.
```\n/**\n * @param {string} colors\n * @return {boolean}\n */\nvar winnerOfGame = function (colors) {\n  let a = 0;\n  let b = 0;\n\n  for (let i = 1; i < colors.length - 1; i++) {\n    if (colors[i - 1] === colors[i] && colors[i + 1] === colors[i]) {\n      colors[i] === "A" ? a++ : b++;\n    }\n  }\n\n  return a > b;\n};\n```
[]