tournament selection is implemented