fixed bug in resetting founder network to zeros in each iteration of the while loop in function geninds