switiching terrains to ids _ next revise dependencies
safeties and renaming for levels
forgot to add global functions
resizing complete