Ok.
But should the values wrap around the edges of the table? Does, for example, the right hand side of the table link back to the left side of the table as do the asteroids and spaceships in Asteroids?
In a table that looks like this:
1 2 3 4 5
6 7 8 9 10
...
Do you have on the first row 1*2*3*4 and 2*3*4*5 or do you have 1*2*3*4, 2*3*4*5, 3*4*5*1, 4*5*1*2, and 5*1*2*3 ? And similar for the vertical and diagonal products?