Updated cards to instance Variable and changed the divideCube() function