Easy 1 line solution (Java RegExp)
Java []\nclass Solution {\n    public boolean winnerOfGame(String colors) {\n        return colors.replaceAll("A{3,}", "AA").length() < colors.replaceAll("B{3,}
```Java []\nclass Solution {\n    public boolean winnerOfGame(String colors) {\n        return colors.replaceAll("A{3,}", "AA").length() < colors.replaceAll("B{3,}", "BB").length();\n    }\n}\n```\n\n\n
['Java']