Main is now clean and using the genetic algo function.