editor grid update, and map generation