private void addInstructionToMain(InstructionList main)
        {
            Instruction instruction = mutator.RandomInstruction;

            instruction.mutate(mutator);
            main.addInstruction(instruction);
        }
 private void possiblyAddNewInstruction(InstructionList instructionList)
 {
     if (mutator.AllowNewInstruction)
     {
         Instruction newInstruction = mutator.RandomInstruction;
         instructionList.addInstruction(newInstruction);
     }
 }
 private void addInstructionToInstructionList(Instruction instruction, InstructionList instructionList)
 {
     if (mutator.skipNextInstruction())
     {
         return;
     }
     possiblyAddNewInstruction(instructionList);
     possiblyMutateInstruction(instruction);
     instructionList.addInstruction(instruction);
 }