Added preliminary map editor code