@Override
	public void render() {
		if(previousScreen != null && previousScreen instanceof GameScreen){
			GameScreen prevGameScreen = (GameScreen) previousScreen;
			if(!prevGameScreen.outTransitionFinished()){
				prevGameScreen.renderOut(Gdx.graphics.getDeltaTime());
				return;
			}
			else{
				previousScreen = null;
			}
		}
		if(currentScreen instanceof GameScreen){
			GameScreen currGameScreen = (GameScreen) currentScreen;
			if(!currGameScreen.inTransitionFinished()){
				currGameScreen.renderIn(Gdx.graphics.getDeltaTime());
				return;
			}
		}
		currentScreen.render(Gdx.graphics.getDeltaTime());
	}