Problem with arrays.

Problem with arrays.

Hi, this is not strictly a JQuery problem but I would be grateful for your help.

I have created a fiddle -  https://jsfiddle.net/a4poster/bLvs827n/.

I can't understand if I have a two dimensional array and change one of the values why both arrays change - hopefully the fiddle will be more helpful than my explanation of the problem.

Thanks in advance.