async def METHOD_NAME(self, guild: discord.Guild, game: Connect4Game):
    winnernum = game.whomst_won()
    if winnernum in (Connect4Game.FORFEIT, Connect4Game.NO_WINNER):
        return
    player1_id = str(game.player1.id)
    player2_id = str(game.player2.id)
    async with self.config.guild(guild).stats() as stats:
        stats["played"] += 1
        if winnernum == Connect4Game.TIE:
            stats["ties"] += 1
            self.add_stat(stats, "draw", player1_id)
            self.add_stat(stats, "draw", player2_id)
        else:
            winner, loser = (
                (player1_id, player2_id) if winnernum == 1 else (player2_id, player1_id)
            )
            self.add_stat(stats, "wins", winner)
            self.add_stat(stats, "losses", loser)