minimap code completed