private void update(float delta) {

		stage.act(delta);		

		if(!gameOver) {
			FlappyBird.groundWrapScrolling();

			if(playListener.getTouched()) {
				showTapToPlay = false;
				playListener.setTouched(false);
				myWorld.flapFlappyBird();
			}
			incrementGameScore();
		}
		else {
			if(gameScoreCounter>9) {bronze = true;} 	// 10
			if(gameScoreCounter>19) {silver = true;} 	// 20
			if(gameScoreCounter>29) {gold = true;} 		// 30
			if(gameScoreCounter>39) {platinum = true;}	// 40
			if(gameScoreCounter > highScore) {
				FlappyBird.highScore = gameScoreCounter;
				highScore = gameScoreCounter;				
				gameFileData.save(Integer.toString(highScore));
			}
			if(menubtnListener.getTouched()) {
				((Game) Gdx.app.getApplicationListener()).setScreen(new Menu());
				dispose();
			}
			else if(restartbtnlistener.getTouched()) {
				((Game) Gdx.app.getApplicationListener()).setScreen(new Play());
				dispose();
			}
		}


		if(myWorld.getPlayerCollision()) {
			gameOver = true;
			stage.addActor(menubtn);	// adding actor here to avoid 'invisible button bug'
			stage.addActor(restartbtn);	// adding actor here to avoid 'invisible button bug'
			if(playGameOverSound)
				Jukebox.play("gameOver");
			playGameOverSound = false;
		}

		if(!showTapToPlay)
			myWorld.update(delta);
	}