private void VisualizeUsingPrimitives(MapGrid grid, MapData data)
    {
        for (int i = 0; i < data.resourcesArray.Length; i++)
        {
            if (data.resourcesArray[i])
            {
                Vector3 positionOnGrid = grid.CalculateIndexFromCoordinatesFromIndex(i);

                if (IsNearToHQ(positionOnGrid, data.hqPosition))
                {
                    continue;
                }

                grid.SetCell(positionOnGrid.x, positionOnGrid.y, CellObjectType.Resource);

                if (PlaceKnightResource(data, positionOnGrid))
                {
                    continue;
                }

                if (dictionaryOfResources.ContainsKey(positionOnGrid) == false)
                {
                    CreateIndicator(positionOnGrid, Color.green, PrimitiveType.Sphere);
                }
            }
        }
    }