I have a problem with adding new node after node with negative value. It is supposed to add new node with multiplied value of a node before. My code adds new node multiple times