public boolean isExpired(AmmoModel shot) {
        boolean expired = false;
        
        if (shot.getType() == 1) {
            if (shot.getSpeedX() > 0) {
                if (shot.getX() >= shot.getExpiryX()) {
                    expired = true;
                }
            } else if (shot.getSpeedX() < 0) {
                if (shot.getX() <= shot.getExpiryX()) {
                    expired = true;
                }
            } else if (shot.getSpeedY() < 0) {
                if (shot.getY() <= shot.getExpiryY()) {
                    expired = true;
                }
            }
        } else {
            if (shot.getSpeedY() > 0) {
                if (shot.getY() >= shot.getExpiryY()) {
                    expired = true;
                }
            }
        }
        return expired;
    }