Refactor minimap position calculation and separate a minimap-block class