Changed the map system to work with the map editor.