[MapEditor] Refactor Offset-calculation in class 'MapSelection'

- To make the code more readable
- Centralized call to Math.min(..) and made he minimum-calculation easily replaceable
Refactoring of class 'MapSelection' to hide internal implementation details