Class-ified the map editor to remove coupling a bit