Added editing functionality to the level editor