@Override
	public void render(float delta) {
		this.rulesView.render(delta, currentSlide);
		timeElapsed += delta;
		float x = Gdx.input.getX();
		float y = Gdx.graphics.getHeight() - Gdx.input.getY();
		if (Gdx.input.justTouched() && timeElapsed >= 1) {	
			if (this.continueButton.getBoundingRectangle().contains(x, y)) {
				currentSlide++;
				timeElapsed = 0;
			}
			if (this.goBackButton.getBoundingRectangle().contains(x, y)) {
				currentSlide--;
				timeElapsed = 0;
			}
		}
		if(currentSlide <=0){
			currentSlide = 0;
		}
		if (currentSlide > 4) {
			// there is no more slide to show, go back to the title screen
			this.game.setScreen(new TitleScreen(game));
		}
	}