@Override
	public void update(GameContainer c, StateBasedGame sbg, int delta)
			throws SlickException {
			time.update(delta);
			character.update(c,delta);
			Input input = c.getInput();
			updateCharacterMovement(input,delta);
			for(Monster monsters : monster){
				monsters.update(c);
				if(monsters.CheckMonIntersectsCharAttack()&&c.getInput().isKeyPressed(Input.KEY_SPACE)){
					character.Attack();
					monsters.DestroyMonster();
					IsAttack = false;
				}
				else if(monsters.CheckMonIntersectsChar()&&Crash){
					heart.update();
					Crash = false;
				}
			}
			DelayMonsterCrash();
			if(heart.CheckHeart() || Monster_Rest == 0){
				Time = time.getTime();
				sbg.enterState(2,new BlobbyTransition(Color.darkGray),new BlobbyTransition());
			}
			time.setCurrentTime();
	}