added dynamic mechanism, probability function for neighbors 1 deep, dynamic protection mechanism
fixed merge conflicts in infection.py