>>286952353
so i guess your pseudo could would be like
>shuffle(the for loop you did)
>for loop for each tile to (number of tiles in dead wall and draw walls)
place tile (in next spot in array) and have the spots in the array point to spots on the table
then(basically you'd have a method that deciphers "1" to the "1" spot on the table and so on)
for(left over tiles)
array->tile[x]->player[y]
you'd do a nested for loop with x and y basically 

its been half a decade so excuse my french