public void update(double delta) {
        Iterator<Brick> i = removeQueue.iterator();
        while (i.hasNext()) {
            Brick b = i.next();
            b.update(delta);
            if (b.opacity < 0.1) {
                i.remove();
            }
        }

        for (int x = 0; x < size; ++x) {
            for (int y = 0; y < size; ++y) {
                if (bricks[x][y] != null) {
                    bricks[x][y].update(delta);
                }
            }
        }

        if (genQueue > 0 && isMovingFinished()) {
            --genQueue;
            generateTiles();

            if (size == 5) {
                generateTiles();
                generateTiles();
            }
        }
    }