protected void updatePosition()
	{
		x = x + xVel;
		y = y + yVel;

		if(x - width/2 < leftBound)
		{
			x = width/2 + leftBound;
		}
		if(y - height/2 < topBound)
		{
			y = height/2 + topBound;
		}
		if(x + width/2 > rightBound)
		{
			x = rightBound - width/2;
		}
		if(y + height/2 > bottomBound)
		{
			y = bottomBound - height/2;
		}
	}