public String playSong(Song song) throws MalformedURLException {

        if (paused && song.getName().equals(getCurrentSongName())) {
            unpause();
            return PLAYING;
        } else if (!paused && song.getName().equals(getCurrentSongName())) {
            pauseSong();
            return PAUSED;
        } else {
            if (mediaPlayer != null) {
                mediaPlayer.stop();
            }
            mediaPlayer = createMediaPlayer(
                    song.getLocation()
            );

            if (mediaPlayer != null) {

                mediaPlayer.play();
                mediaPlayer.setVolume(currentVolume);
                return PLAYING;
            }

            return PLAYING;
        }

    }