added death and susceptible handling in the agentbased.cpp file