implemented genetic algo into cells