Earth spent 500 million years creating and eating dead continents