Cleanup

i separated editing functions from "terraingenerator.cpp" because the
file was getting too much big and cumbersome to look at