comprimir al maximo este codigo: "private void AnimarGemasCaen(List<(int, int)> listaGemas, List<(int, int)> listaPrimerBlanco)
    {
        foreach (var columnas in listaPrimerBlanco)
        {
            //seleccionar las gemas de la columna en listaPrimerBlanco
            var gemas = listaGemas.Where(x => x.Item2 == columnas.Item2).ToList();
            var target = positions.FirstOrDefault(p => p.row == columnas.Item1 && p.col == columnas.Item2);
            int i = 0;
            foreach (var gema in gemas)
            {
                GameObject gem = GameObject.Find($"Piece_{gema.Item1}_{gema.Item2}");
                gem.transform.DOMoveY(target.y, 1f).SetEase(Ease.InFlash).SetDelay(2f + (i/2f));
                gem.name = $"Piece_{columnas.Item1 - i}_{columnas.Item2}";
                i++;
                if (columnas.Item1 - i >= 0)
                {
                    target = positions.FirstOrDefault(p => p.row == columnas.Item1 - i && p.col == columnas.Item2);
                }
            }
        }
    }

    private void ShowBoard(int[,] board)
    {
        //Debug Log formatted of the board and in order to see the board
        var mensaje = string.Join("\n", board.Cast<int>().Select((value, index) => new {value, index})
            .GroupBy(x => x.index / N)
            .Select(x => string.Join(" ", x.Select(v => v.value))));

        Debug.Log(mensaje);
    }

    private void ShowGems(List<(int, int)> gems)
    {
        // Debug.Log of the List<(int, int)> gems
        var mensaje = string.Join("\n", gems.Select(row => string.Join(" ", row)));
        Debug.Log(mensaje);
    }

    private void GenerateScreenBoard()
    {
        Vector2 screenSize = new Vector2(Screen.width, Screen.height);
        Debug.Log(screenSize);

        float iconSize = 50f;
        float spacing = 15f;

        float tableWidth = 6 * (iconSize + spacing) - spacing;
        float tableHeight = 6 * (iconSize + spacing) - spacing;
        Vector2 tablePosition = (screenSize - new Vector2(tableWidth, tableHeight)) / 2f;

        List<Vector2> iconPositions = CalculateIconPositions(tablePosition, iconSize, spacing);
        List<Vector2> iconWorldPositions = CalculateIconWorldPositions(iconPositions);

        CreateIcons(iconWorldPositions);
    }

    private List<Vector2> CalculateIconPositions(Vector2 tablePosition, float iconSize, float spacing)
    {
        List<Vector2> iconPositions = new List<Vector2>();
        for (int row = 0; row < 6; row++)
        {
            for (int col = 0; col < 6; col++)
            {
                float x = tablePosition.x + col * (iconSize + spacing);
                float y = tablePosition.y + row * (iconSize + spacing);
                iconPositions.Add(new Vector2(x, y));
            }
        }

        return iconPositions;
    }"