Now the javascript renders the table and the rows with one function and calls another function to render the cols within the rows
Added a link reference to each image in each column
Added an onclick event to each button that changes the image. Also created an array witch gets the randomized array from the RandomGenerator
Created a new variable that contains the brickID for each column. The brickID gets each number out of the array which determine the image
Added a counter that determines with an if-statement how many times you can turn an image
The guesscount now works properly with a function. If two bricks with the same ID is turned now gives a console log
Finally I got it to work properly. Still got questions how to halt the onclick function while the timeout is counting down