edited "infectPc" function