For most species on Earth, the ultimate goal of life is to attract mates and pass on their genes to the next generation.