function updateTable(data) {
  b00,
  b10,
  b20,
  b01,
  b11,
  b21

  //Cycles throguh every tile
  for (var i = 0; i < 8; i++) {
    for (var j = 0; j < 8; j++) {
      var obj = data[i][j];
      var id_string = "#b" + j + i;
      if (obj == "X") {
        $(id_string).val("X");
      } else if (obj == "Y") {
        $(id_string).val("Y");
      } else if (obj == "YY") {
        $(id_string).val("YY");
      } else if (obj == "XX") {
        $(id_string).val("XX");
      } else {
        $(id_string).val("  ");
      }
    }
  }
}
/**
 * @function updateTable - updates 2D table array after every second as pullData() is being called every second
 */
@function updateTable - updates 2D table array after every second as pullData() is being called every second
@function updateTable - updates 2D table array after every second as pullData () is being called every second
function updateTable(data) {
  b00,
  b10,
  b20,
  b01,
  b11,
  b21
  for (var i = 0; i < 8; i++) {
    for (var j = 0; j < 8; j++) {
      var obj = data[i][j];
      var id_string = "#b" + j + i;
      if (obj == "X") {
        $(id_string).val("X");
      } else if (obj == "Y") {
        $(id_string).val("Y");
      } else if (obj == "YY") {
        $(id_string).val("YY");
      } else if (obj == "XX") {
        $(id_string).val("XX");
      } else {
        $(id_string).val("  ");
      }
    }
  }
}
function updateTable ( data ) { b00 , b10 , b20 , b01 , b11 , b21 for ( var i = 0 ; i < 8 ; i ++ ) { for ( var j = 0 ; j < 8 ; j ++ ) { var obj = data [ i ] [ j ] ; var id_string = "#b" + j + i ; if ( obj == "X" ) { $ ( id_string ) . val ( "X" ) ; } else if ( obj == "Y" ) { $ ( id_string ) . val ( "Y" ) ; } else if ( obj == "YY" ) { $ ( id_string ) . val ( "YY" ) ; } else if ( obj == "XX" ) { $ ( id_string ) . val ( "XX" ) ; } else { $ ( id_string ) . val ( "  " ) ; } } } }
@function updateTable - updates 2D table array after every second as pullData() is being called every second
@function updateTable - updates 2D table array after every second as pullData () is being called every second
//Cycles throguh every tile