Fitness function implemented first pass