private void updateInvincibility() {
        if (invincibility > 0)
            invincibility--;
        else {
            for (Ship that : world.getShips()) {
                if (that != this && rect.intersects(that.getRect()))
                    collideWithEnemy((EnemyShip) that);
            }
        }
    }