moving dfsForRootbeer to Rootbeer