public Mob checkAndGetMob(int x, int y, int dir, Mob mob){
		
		for(Mob m : mobs){
			if(m.equals(mob)) continue;
			if((m.getX() + 16)  / 32 == x && (m.getY() + 16) / 32 == y) return m;
			if(dir == 0) if((m.getX() + 16) / 32 == x && (m.getY() + 16) / 32 == y - 1) return m;
			if(dir == 1) if((m.getX() + 16)  / 32 == x + 1 && (m.getY() + 16) / 32 == y) return m;
			if(dir == 2) if((m.getX() + 16)  / 32 == x && (m.getY() + 16) / 32 == y + 1) return m;
			if(dir == 3) if((m.getX() + 16)  / 32 == x  - 1 && (m.getY() + 16) / 32 == y) return m;
		}
		
//		if(player.equals(mob)) return null;
//		
//		int px = player.getX();
//		int py = player.getY();
//		
//		if((px + 16) / 32 == x && (py + 16) / 32 == y) return player;
//		if(dir == 0) if((px + 16) / 32 == x && (py + 16) / 32 == y - 1) return player;
//		if(dir == 1) if((px + 16) / 32 == x + 1 && (py + 16) / 32 == y) return player;
//		if(dir == 2) if((px + 16) / 32 == x && (py + 16) / 32 == y + 1) return player;
//		if(dir == 3) if((px + 16) / 32 == x - 1 && (py + 16) / 32 == y) return player;
		
		return null;
	}