Changed how the program recurs though folders

The program now uses a 'Stack' type to recur though directories,
however, the program seems to get a stack overflow that doesn't show up
on breakpoint. Not sure how to fix it...