public BlockCloudEntity(int width, int elements, Sprite blockSprite) {
        super();
        blocks = new ArrayList<BlockEntity>(elements);
        int x = 0;
        int y = 0;
        for (int el = elements; el >= 0; el--){
            blocks.add(new BlockEntity(x, y, blockSprite));
            x += blockSprite.getWidth() + 1;
            if (x >= width){
                y += blockSprite.getHeight() + 1;
                x = 0;
            }
        }
    }