Solution of an Artificial Intelligence problem by using a genetic algorithm based on elite and randomness