modified selection algorithm to use tournament selection. updated todo