```\n    function _killWoundedAgents(\n        uint256 roundId,\n        uint256 currentRoundAgentsAlive\n    ) private returns (uint256 deadAgentsCount) {\n        // rest of code\n        for (uint256 i; i < woundedAgentIdsCount; ) {\n            uint256 woundedAgentId = woundedAgentIdsInRound[i.unsafeAdd(1)];\n\n            uint256 index = agentIndex(woundedAgentId);\n          if (agents[index].status == AgentStatus.Wounded) {\n                // rest of code\n            }\n\n            // rest of code\n        }\n\n        emit Killed(roundId, woundedAgentIds);\n    }\n```\n