New files for _main_ file and _terrain_check_