Ultimately I'm making a slider puzzle with a table, but at the moment I am generating a new puzzle and shuffling the tiles, but it appears that something in my code is making this work incorrectly. (not all the table cells are populated, etc.) Any idea what could be causing this?
In the program I am writing, I am using body onload to build the puzzle but for some reason that won't work in the Fiddle:
</head>
<body onload="newPuzzle(_r, _c)">
</body>