tried to fix the encounterProbability calculation (undone)