public void startPlaying(final String filename)
    {
        try {
            setupPlayer(filename);            
            Thread playerThread = new Thread() {
                public void run()
                {
                    try {                        
                    	if(filename.contains("music/") && musicPlayer != null){                        	
                    		musicPlayer.play();                    		
                        }
                        else if(filename.contains("sounds/") && soundPlayer != null){                        	
                        	soundPlayer.play();
                        }
                    }
                    catch(JavaLayerException e) {
                        reportProblem(filename);
                    }
                    finally {
                        killPlayer(filename);
                        if(filename.contains("music/"))
                        {
                        	isPlaying = false;
                        }
                    }
                }
            };
            playerThread.start();
        }
        catch (Exception ex) {
            reportProblem(filename);
        }
    }