private boolean ifOut(int x, int y) {
        if (x < width/2-spanX || x > width/2+spanX || y < height/2-spanY -panelHeight || y > height/2+spanY-panelHeight) {
            return true;
        } else {
            return false;
        }
    }