I am trying to do a delete node by the specified value. And it works until there is only one node left but i want to be able to delete the nodes even if it will cause the list t