implemented back-end of level editor