Moved cardboard code into the cardboard object