updated add_token_to_list with linked list implementation