MapEdit_Grid refactor