save each new token in list and in end just joining them with spaces
changed main so that it will run as many times as the first given input says