Level editor

implemented map saver and map loader, fixed several bugs in level editor.