Here’s what i’m working on. The table becomes nil after restarting.

Could someone explain to me how I would initialize this properly?

**Sample:**

```
cg =
{
p1 = { value },
p2 = { value },
design =
{
SizeW = 150,
SizeH = 250
},
pos =
{
card1 =
{
x = ( ScrW() /2 ) - ( cg.design.SizeW /2 ),
y = ( ScrH() /2 ) - ( cg.design.SizeH /2 ),
valuePosX = ( cg.pos.card1.x + ( cg.design.SizeW /2 ) ),
valuePosY = ( cg.pos.card1.y + ( cg.design.SizeH /2 ) ) + 50,
},
card2 =
{
x = ( ScrW() /2 ) - ( cg.design.SizeW /2 ),
y = ( ScrH() /2 ) - ( cg.design.SizeH /2 ),
valuePosX = ( cg.pos.card2.x + ( cg.design.SizeW /2 ) ),
valuePosY = ( cg.pos.card2.y + ( cg.design.SizeH /2 ) ) + 50,
}
}
}
```