def calculate_fitness(candidate, ideal):
	""" calculate fitness of individual candidates by comparing them to the end result """
	fitness_score = 0
	for i in range(len(ideal)):
		if candidate[i] == ideal[i]:
			fitness_score += 1
	return fitness_score