private void pickWanderLocation(){
		if(spawner == null) return;
		int sx = spawner.getX();
		int sy = spawner.getY();

		if(x == targetX && y == targetY){
			targetX = 0;
			targetY = 0;
			moving = false;
		}

		int tries = 0;
		while(true){
			tries++;
			if(tries >= 50) break;
			targetX = (x / 32) + random.nextInt(6) - 3;
			targetY = (y / 32) + random.nextInt(6) - 3;

			double dist = pathfinder.getDistance(new Vector2i(sx, sy), new Vector2i(targetX, targetY));

			if(dist < 5.5f){
				if(dungeon.getTile(targetX, targetY).equals(Tile.floorTile) && !dungeon.checkMob(targetX, targetY, this)) break;
			}
	
		}
		
	}