Refactored mating heuristic to a function.
Mating partner is now selected randomly.