public void checkCollision(GameObject object) {
        // check with other game objects
        if (!object.dead) {
            for (GameObject otherObject : objects) {
                if (!(object instanceof Asteroid && otherObject instanceof EnergyShield)) {
                    if (object.hittable(otherObject)
                            && overlap(object, otherObject)) {
                        object.hit(otherObject);
                        otherObject.hit(object);
                        return;
                    }
                }

            }
        }
    }