I am trying to implement the addNode function for a linked list. The pointer "head" is designed to point to the first node of the list. The addNode function works when