public void splash(GraphicsEngine g) throws JavaLayerException{
		StdDraw.setXscale(0.0, 610); //Set scale to 500
		StdDraw.setYscale(0.0, 610); //Set scale to 500
		while(true){
			String file = "splash/splashscreen.jpg";
			//String shoot = "Portal2_sfx_portal_gun_fire_blue.mp3";
			FileInputStream welcome = null;
			
			try {
				welcome = new FileInputStream("splash/welcome.mp3");
				
				
			} catch (FileNotFoundException e) {
				// TODO Auto-generated catch block
				e.printStackTrace();
			}
			
			StdDraw.picture(305.0, 305.0, file, 650.0, 650.0);
		
			final AtomicBoolean pause = new AtomicBoolean(false);
			final  Player player = new Player(welcome);
	        Thread playerThread = new Thread() {
	            @Override
	            public void run() {
	                try {
	                	if(player.isComplete()){
	                		player.play(1);
	                	}
	                	while (player.play(1)) {
	            			if(pause.get()) {
	            				LockSupport.park();
	            			}
	                    }
	                }
	                catch (Exception e) {
	                    System.err.printf("%s\n", e.getMessage());
	                }
	            }
	        };
	   
	        playerThread.start();
	        while(true){
	        	pause.set(!pause.get());
	            if (!pause.get()) {
	                LockSupport.unpark(playerThread);
	            }
	            if(StdDraw.hasNextKeyTyped()){
	            	return;
	            }
	        }
		}
	}