modifications from parallel version (like shuffling of infectious neighbour lists)