Abstacted the list and changed old list into the linkedlist it was