@sherminator - i think you have to be careful when using a phrase like" aim" in connection with evolution, because it can conjure up an image of some sort of external direction. The reality is much more mundane.
At its most fundamental, evolution is about the change in inherited traits over time in a population.What effects the inherited characteristics are changes at a genetic level.One of the drivers of such change is mutation, a random, non directed process, with no aim or agenda.
These mutations can be described in terms of their effect on the animal, altering its fertility, attractiveness to potential mates, longevity, efficiency of food conversion, etc. These effects can be described as neutral ( the vast, vast majority), beneficial or harmful.
Those that confer a benefit to the survival or reproduction of the animal will gradually come to dominate the species gene pool.Such a process, repeated and concentrated over generations, can lead to diversification and possibly speciation.
So, although randomness underpins everything -, natural selection acts as a positive, non- random filter, ensuring that changes conferring a survival or reproductive benefit will come to predominate within the species - this may lead to diversification and, ultimately, speciation.