started the back trace type solution with new linked list stuff