added fitnessScore function