@Override
    public void pop() {
        if (amount != 0) {
            for (int i = 0; i < amount + 1; i++) {
                stack[i] = stack[i + 1];
            } 
            amount--;
        }
    }