Made the cube adjust to its containment sizes, så multiple sizes can be implemented