Level editor

completely modified the back-end in level editor. also modified the gui to support.