public void facePlayer(){
		if(main.character!=null){
			float dx = main.character.getPosition().x - getPosition().x;
			if(dx > 0 && isFacingLeft()) changeDirection();
			else if (dx < 0 && !isFacingLeft()) changeDirection();
		}
	}