Connecting Habitats to Prevent Species Extinctions