public void CollisionCheck(int x, int y, int xa, int ya, int h, int w,
			Entity ee) {

		int xp = x + xa;
		int yp = y + ya;

		move: {
			java.util.List<Entity> entities = getEntities(ee);
			for (int i = 0; i < entities.size(); i++) {
				Entity e = entities.get(i);
				if ((x + (w * xa) + xa) == (e.x - (xa * e.w))) {
					if ((y - h) <= (e.y + e.h) && (y + h) >= (e.y - e.h)) {
						ee.walking = false;
						break move;
					}
				}
				if ((y + (h * ya) + ya) == (e.y - (ya * e.h))) {
					if ((x - w) <= (e.x + e.w) && (x + w) >= (e.x - e.w)) {
						ee.walking = false;
						break move;
					}

				}
			}

			if (Solid[(xa * w) + xp >> 4][(ya * h) + yp >> 4]) {
				ee.walking = false;
				break move;
			}
			ee.x += xa;
			ee.y += ya;

		}

	}