public boolean isColliding(GameObject object2) {

        if (!this.active || !object2.isActive()) {
            return false;
        }

        int x, y;
        for (int i = 0; i < object2.drawShape.npoints; i++) {
            x = object2.drawShape.xpoints[i];
            y = object2.drawShape.ypoints[i];

            if (this.drawShape.contains(x, y)) {
                return true;
            }
        }

        for (int i = 0; i < this.drawShape.npoints; i++) {
            x = this.drawShape.xpoints[i];
            y = this.drawShape.ypoints[i];

            if (object2.drawShape.contains(x, y)) {
                return true;
            }
        }

        return false;
    }