private static Grain getNearestGrain(float[] location,
			ArrayList<Grain> zoneList) {
		Grain winner = null;
		float bestDistance = Float.MAX_VALUE;
		int listSize = zoneList.size();
		for (int i = 0; i < listSize; i++) {
			Grain grain = zoneList.get(i);
			float distance = euclidianDistance(location, grain.location);
			if (distance < grain.radius) {
				if (winner == null) {
					winner = grain;
				} else {
					if (distance < bestDistance) {
						winner = grain;
						bestDistance = distance;
					}
				}
			}
		}
		//System.out.println(winner);
		return winner;
	}