ordered linked list not fully working

has logical errors