I should probably do while(node) instead of while(node->next)