Separated logic and UI for MapEditor. Bugs still need fixing: False negatives on map validation, crash when ESC on MapEditor loadMap. Still need to convert internal vector to type TILE_TYPE from int.