def parse_mergers(self):
        amount = self.buffer.read_short()
        for i in range(0, amount):
            hunter, prey = self.buffer.read_int(), self.buffer.read_int()
            if self.game.has_id(hunter) and self.game.has_id(prey):  # if we both know these cells
                # self.ids: our own cells ids
                # game.ids: all bot cell ids
                # game.cells: all global cell objects
                
                # game.cells: remove eaten cell from global cells
                cell = self.game.get_cell(prey)  # prey = prey_id
                self.game.remove_cell(prey)
                
                # self.ids/game.ids: remove cell id from bot and game if it is our own
                if self.has_id(cell.id):
                    self.remove_id(cell.id)
                    self.game.remove_id(cell.id)
                print('[game/parse_mergers] %d ate %d' % (hunter, prey))
    
    # version 520
dataset/ETHPy150Open Raeon/pygar/bot.py/Bot.parse_mergers/original