[Map Editor] Refactored code, added brushes