You're going to get yourself into hot water with that "trying" word in there. It's a mistake to look at this as a designed feature with a goal, when in fact what's going one is emergent, just doing whatever the heck it does, in concert with other features of the organism, in such a way that its chances of having successful offspring is increased.