Finished while loop that should update each of the fd lists before the select is made. Also should update the stored value for the highest number fd.