@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(newGameRect))main.setScreen(main.gameScreen);
			if (selector.overlaps(loadGameRect)){
				System.out.println("Activated Load Event");
				if(!Space.player.gameLoaded){
					System.out.println("Starting Game Load");
					Space.player.loadGame();//main.setScreen(main.loadGameScreen);
					Space.player.speed = Space.player.baseSpeed;
					Space.player.health = Space.player.healthMax;
					main.setScreen(main.gameScreen);
				}
			}

		}
		
		if(Gdx.input.isKeyPressed(Keys.ENTER)){
			if (currentSelection == 0||selector.overlaps(newGameRect))main.setScreen(main.gameScreen);
			if (currentSelection == 1||selector.overlaps(loadGameRect))Space.player.loadGame();//main.setScreen(main.loadGameScreen);

		}
		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(mainMenuImg,0,0);
		if (currentSelection == 0||selector.overlaps(newGameRect)){
			batch.draw(glowImg, 488+55, 182);
		}
		if (currentSelection == 1||selector.overlaps(loadGameRect)){
			batch.draw(glowImg,  488+55, 182-75);
		}
		if (currentSelection == 2||selector.overlaps(optionsRect)){
			batch.draw(glowImg,  488+55, 182-150);
		}
		//batch.draw(glowImg, 0, 240);
		
		batch.end();
	}