code cleanup

changed while loops to for loops and removed excess variables
finished roulette wheel selection

also moved parents_number to the main function