recoded old terrain generator in new structure