Code:
var gridClick = unsafeWindow.GridClick;

function makeMove(grid, x, y) {
  gridClick(grid, x, y);
  window.setTimeout(function() {
    unsafeWindow.GridCheck();
  }, 500 + (500 * Math.random()));
};

makeMove(this,8,1);
trying to get this thing to make a move, but i keep getting "grid.style" is undefined. the makeMove function is from another user's script that makes the move for you when you click and make the square red. trying to make this into a full player, but can't figure out how to even make a move. xD Help?