Started coding the elitism function