Trying to implement an erase function that takes the position of a Node in a linked list and deletes, but it always deletes the node with the first position, here\'s the sim