function validMoveChecker(array, multiple) {
  for (var idx = 0; idx < multiple.length; idx++) {
    var count = 0
    for (var i = 0; i < multiple[idx].length; i++) {
      if (multiple[idx][i] === array[i]) {
        count++
      }
      //If both x and y postion are the same the count is 2
      if (count == 2) {
        return "valid"
      }
    }
  }
  return "false move"
}
/**
 * @function validMoveChecker - Check if the player selects a cell to move that it matches one of the options returned from locationOfSuroundings
 */
@function validMoveChecker - Check if the player selects a cell to move that it matches one of the options returned from locationOfSuroundings
@function validMoveChecker - Check if the player selects a cell to move that it matches one of the options returned from locationOfSuroundings
function validMoveChecker(array, multiple) {
  for (var idx = 0; idx < multiple.length; idx++) {
    var count = 0
    for (var i = 0; i < multiple[idx].length; i++) {
      if (multiple[idx][i] === array[i]) {
        count++
      }
      if (count == 2) {
        return "valid"
      }
    }
  }
  return "false move"
}
function validMoveChecker ( array , multiple ) { for ( var idx = 0 ; idx < multiple . length ; idx ++ ) { var count = 0 for ( var i = 0 ; i < multiple [ idx ] . length ; i ++ ) { if ( multiple [ idx ] [ i ] === array [ i ] ) { count ++ } if ( count == 2 ) { return "valid" } } } return "false move" }
@function validMoveChecker - Check if the player selects a cell to move that it matches one of the options returned from locationOfSuroundings
@function validMoveChecker - Check if the player selects a cell to move that it matches one of the options returned from locationOfSuroundings
//If both x and y postion are the same the count is 2