moved setDead() to Entity.delete() so that deleted entities are removed from the living list