if (action == 'ship') {
                    let max = parseInt(i.val()) - 1;
                    peer.attr('max', max);
                    peer.removeAttr('min');