def METHOD_NAME(self, player):
    if SCORE_PERCENTAGE.get() and player:
        team = player.team
        caps_percent = math.floor(
            self.max_score*team.kills/KILL_LIMIT.get())
        if caps_percent > team.score:
            self.do_captures(team, caps_percent)
    if self.green_team.kills >= KILL_LIMIT.get():
        self.broadcast_chat("%s Team Wins, %s - %s" %
                            (self.green_team.name,
                             self.green_team.kills,
                             self.blue_team.kills))
        self.reset_game(player)
        protocol.on_game_end(self)
    elif self.blue_team.kills >= KILL_LIMIT.get():
        self.broadcast_chat("%s Team Wins, %s - %s" %
                            (self.blue_team.name,
                             self.blue_team.kills,
                             self.green_team.kills))
        self.reset_game(player)
        protocol.on_game_end(self)