@Override
	public void render(float delta) {
		
		if(Gdx.input.isTouched()){
				currentSelection = -1;
				Vector3 touchPos = new Vector3();
			    touchPos.set(Gdx.input.getX(), Gdx.input.getY(), 0);
			    camera.unproject(touchPos);
			    
			    selector.x = touchPos.x;
			    selector.y = touchPos.y;
		}
		if(!Gdx.input.isTouched()){
			if (selector.overlaps(backRect))main.setScreen(main.mainMenu);
			if (selector.overlaps(launchRect))main.setScreen(main.gameScreen);
		}
		
		if(Gdx.input.isKeyPressed(Keys.ENTER)){
			if (currentSelection == 0||selector.overlaps(backRect))main.setScreen(main.mainMenu);
			if (currentSelection == 1||selector.overlaps(launchRect))main.setScreen(main.gameScreen);

		}
		if(Gdx.input.isKeyPressed(Keys.UP)){
			if(!stillPressed)currentSelection = (currentSelection-1);
			if (currentSelection <= -1)currentSelection = 2;
			stillPressed = true;
		}
		if(Gdx.input.isKeyPressed(Keys.DOWN)){
			if(!stillPressed)currentSelection = (currentSelection+1);
			if (currentSelection >= 3)currentSelection = 0;
			stillPressed = true;
		}
		if(!Gdx.input.isKeyPressed(Keys.DOWN)&&!Gdx.input.isKeyPressed(Keys.UP)){stillPressed = false;}
		
		batch.begin();
		batch.draw(loadScreenImg,0,0);
		if (currentSelection == 0||selector.overlaps(backRect)){
			batch.draw(glowImg, backRect.x-15, backRect.y-18);
		}
		if (currentSelection == 1||selector.overlaps(launchRect)){
			batch.draw(glowImg,  launchRect.x-15, launchRect.y-18);
		}

		//batch.draw(glowImg, 0, 240);
		
		batch.end();
	}