[Python3] greedy 5-line
\n\nclass Solution:\n    def winnerOfGame(self, colors: str) -> bool:\n        diff = 0 \n        for k, grp in groupby(colors): \n            if k == "A": diff
\n```\nclass Solution:\n    def winnerOfGame(self, colors: str) -> bool:\n        diff = 0 \n        for k, grp in groupby(colors): \n            if k == "A": diff += max(0, len(list(grp)) - 2)\n            else: diff -= max(0, len(list(grp)) - 2)\n        return diff > 0 \n```
['Python3']