public void update() 
	{
		// Collision with window's boundaries
		if(xPos < 0) xPos = 0;
		if(xPos > GamePanel.WIDTH - 64) xPos = GamePanel.WIDTH - 64;
		if(yPos < 0) yPos = 0;
		if(yPos > GamePanel.HEIGHT - 64) yPos = GamePanel.HEIGHT - 64;
				
		xPos += xVel;
		yPos += yVel;
		
		currentHappinessLevel -= 0.05;
		if(jumping)currentHappinessLevel -= 0.1;
		
		if (currentHappinessLevel > 99) currentHappinessLevel = 99;
		if (currentHappinessLevel < 0) currentHappinessLevel = 0;
		scaleHappiness();
		updateHeartAnimation();
	}