Biodiversity helps coral reefs thrive – and could be part of strategies to save them