private int setStartedAllready(int x) {
        Boolean mediaStarted = false;

        mediaStarted = mediaPlayer.isPlaying();
        if(mediaStarted) {
            startedAllreadyGlobal = true;
            theTimer.stop();
        }
        x = x + 200;

        if(x > 5000 && mediaStarted == false){
            System.err.println("Media not started after 5 seconds,");
            theTimer.stop();
        }
        return x;
    }