Restructed the tiling code to work with both a generator and list capabilities.