Integrate map editor

Have the map editor use gamestate.js