Minimap refactor