@Override
	public void update(GameContainer c, StateBasedGame game, int delta)
			throws SlickException{
		Input in = c.getInput();

		if(checker){
			gg.play();
			if(player == 0){
				playGameOver();
			}
			Date newTime = new Date();
			if(newTime.getSeconds() > startTime.getSeconds() + 10){
				c.exit();
			}
		}

		/* Mute button */
		if(in.isKeyPressed(Input.KEY_M)){
			if(background.playing()){
				background.stop();
			}
			else{
				background.loop(1, 0.1f);
			}
		}

		/* Exit button */
		if(in.isKeyPressed(Input.KEY_ESCAPE)){
			c.exit();
		}

		/* Check for alive players */
		int alivePlayers = 0; // Alive players
		for(int i = 0; i < players.length;i++){
			if(players[i].isAlive()){
				alivePlayers++;	
				winner = i+1;
			}
		}

		// Game exits if players <= 1
		if(alivePlayers > 1){
			updatePlayers(c,delta,in);
			updateBombs(c,delta,in);
			updateMap(c,delta,in);
		}else{			
			background.stop();
			checker = true;	
		}
	}