function play() {
  if (opponent.length == 0) return 0;
  if (opponent.length == 1) return 1;
  return 2;
}

