private void getBounce (Dimension bounds) {
        if (getBottom() >= bounds.height || getTop() <= 0) {
            getVelocity().setDirection(-getVelocity().getDirection());
        }
        else if (getRight() >= bounds.width || getRight() <= 0) {
            getVelocity().setDirection(Sprite.LEFT_DIRECTION - getVelocity().getDirection());
        }
        /*
         * Note: setDirection() had to be changed in the vector class to public
         * from protected to be able to do this.
         */
    }