public int changeDir()
	{
		double angle = Math.atan2(owner.yC - destY, destX - owner.xC);	// angle necessary
		if(angle < 0)	// make it 0 <= angle <= 2pi
			angle += 2*Math.PI;
		
		double tempDir = owner.dir;	// current direction of entity

		if(angle > tempDir)
		{
			if(angle - tempDir < anglePrecision)	// close enough
				return (int)((Math.random() - 0.5)*5);
			else if(angle - tempDir < Math.PI)	// counterclockwise is better
				return -1;
			return 1;	// clockwise is better
		}
		else
		{
			if(tempDir - angle < anglePrecision)	// close enough
				return (int)((Math.random() - 0.5)*5);
			else if(tempDir - angle < Math.PI)	// cw is better
				return 1;
			return -1;	// ccw is better
		}
	}