public void upDate(long gameTime) {
		if (Avatar.isDead) {
			Sound.playerDeath.play();
		
			try {
				Thread.sleep(130);
			} catch (InterruptedException e) {
				e.printStackTrace();
			}
			this.restart();
		}
		avatar.update(map);
		avatar.move();
		exitDoor.update(this, avatar);
		cannon.update(avatar, map);
		movingSquares.update(avatar, map ,gameTime);
	}