finish worldgen code