My try at Genetic algo