gui: added depth-first search to find root FF2ds