I have this JavaScript code snippet:
var i = 0; function draw() { if (list[i] == \'x\' && gridItems[i].classList != \'gridItem startPoint\' &&