I\'ve tried to create a loop with a for, and increment by an onclick event, but it doesn\'t work.
A part of js :
var gameCase = [\'\', \'\', \'\', \
Wrap your listener:
onclick = (function(i) {return function() { ... };})(i);
This fixes your variable scope issues.