private void selectTarget(TestMob[] testMobs){
		int dist;
		int shortDist = 1000000;
		if(testMobs[target] != null)testMobs[target].sprite = Sprite.testMob;
		for(int i = 0 ;i < testMobs.length; i++){
			if(testMobs[i] != null){
				dist = (int) Math.sqrt(((x - testMobs[i].x) * (x - testMobs[i].x)) + ((y - testMobs[i].y) * (y - testMobs[i].y)));
				if(dist < shortDist ){
					shortDist = dist;
					target = i;
				}
			}
		}
		
		hasTarget = true;
		if(shortDist > range)  hasTarget = false;
		
	}