added first implementation of mapeditor