reorganized UI to make it more modular
can now return a map (valid path -> valid tile paths)