public void transform(){
		if(dead){
			movement.setX(0);
			this.animation = death;
			return;
		}
		if(energy >= 30){
		energy -= 30;
		if (type == Type.CAT) type = Type.DOG;
		else type = Type.CAT;
		SoundLibrary.playSound("transform.wav");
		//Transform and then face correct direction
		this.prevAnimation = animation;
		this.animation = transform;
		((Thread) new Transform()).start();
		}

	}