public MovingEntity getClosestMovingEntity(int x, int y){
		int closestX, closestY, closestDistance = 999;
		int xe, ye;
		Entity closest = null;
		for(Entity e: entities){
			xe = e.getxPos();
			ye = e.getyPos();
			if(Util.getDistance(x, y, xe, ye) < closestDistance && xe !=x && ye != y && e instanceof MovingEntity){
				closest = e;
				closestDistance = Util.getDistance(x, y, xe, ye);
			}
		}
		return (MovingEntity) closest;
		
	}