Add enemies and close empty leaves

Now that we have enemies we only need keep those leaves open which
actually contain them (and appropriately distribute the enemies in case we
still need two open leaves).