Choose a population size of 5 and the determine the average number of generations necessary to see an allele fix (so that all members of the population are the same color).
If you don't get fixation, increase by 5 the number of generations. For each simulation, record the time to fixation.
Follow this procedure until you have data for 5 trials where the allele became fixed. Then calculate the mean time to fixation.