Debuggin in progress, currently SEGFAULTing on accessing last item in the list