code: function _check_slot(offset, result) {
          if (now - that.lastUpdate > SPINTIME) {
              var c = parseInt(Math.abs(offset / SLOT_HEIGHT)) % ITEM_COUNT;
              if (c == result) {
                  if (result == 0) {
                      if (Math.abs(offset + (ITEM_COUNT * SLOT_HEIGHT)) < (SLOT_SPEED * 1.5)) {
                          return true; // done
                      }
                  } else if (Math.abs(offset + (result * SLOT_HEIGHT)) < (SLOT_SPEED * 1.5)) {
                      return true; // done
                  }
              }
          }
          return false;
      }
docs: Check slot status and if spun long enough stop it on result