Genetic algorithm for creature generation and learning