public boolean checkCollision(IPane pane) {
        int invaderWidth = (int) getPreferredSize().getWidth();
        int invaderHeight = (int) getPreferredSize().getHeight();
        int paneWidth = (int) pane.getPreferredSize().getWidth();
        int paneHeight = (int) pane.getPreferredSize().getHeight();

        return getX() < pane.getX() + paneWidth
            && getX() + invaderWidth > pane.getX()
            &&  getY() < pane.getY() + paneHeight
            && getY() + invaderHeight > pane.getY();
    }