added code for individual-based vs density-based simulations