private void addEnemyLine(int x0, int x1, int y)
    {
        boolean canAdd = true;
        for (int x = x0; x < x1; x++)
        {
            if (level.getBlock( x, y ) == -95)
            {
                canAdd = false;
                break;
            }
        }

        if (!canAddEnemyLine(x0, x1, y))
        {
            canAdd = false;
        }
        if(!canAdd) return;

        for (int x = x0; x < x1; x++)
        {
            if (random.nextInt(35) < difficulty + 1)
            {
                int type = random.nextInt(4);
                if (difficulty < 1)
                {
                    type = Enemy.ENEMY_GOOMBA;
                }
                else if (difficulty < 3)
                {
                    type = random.nextInt(3);
                }
                level.setSpriteTemplate(x, y, new SpriteTemplate(type, random.nextInt(35) < difficulty));
            }
        }
    }