in main run loop, decomposed check_for_birth and check_for death into
functions