Implemented map editing features
Fixed some stuff