[this code ](https://github.com/driftmap/tile-generator/blob/main/src/tile_tree_generator.py)has a lot of redundancies and should be rewritten