public void update(){
		super.update();
		
		if(health <= 0){
			World.current.addPlayer(new Player(new Vector2(256 + 8, 256 + 8), null, Main.playerTextures));
			World.current.removePlayer(this);
			MainMenu.open = true;
			
			for(Mob e : World.current.mobs){
				Enemy en = (Enemy) e;
				en.clearTarget();
			}
		}
		
		if(Input.checkForPress(Keyboard.KEY_SPACE)){
			attack();
		}
		
		if(Keyboard.isKeyDown(Keyboard.KEY_W)){
			move(0, -2);
		}

		if(Keyboard.isKeyDown(Keyboard.KEY_S)){
			move(0, 2);
		}

		if(Keyboard.isKeyDown(Keyboard.KEY_A)){
			move(-2, 0);
		}

		if(Keyboard.isKeyDown(Keyboard.KEY_D)){
			move(2, 0);
		}
		
		light.location = this.position.plus(size/2);
	}