private void remove(InteractiveObject entity) {
		for (int x = entity.tileLeft; x <= entity.tileRight; x++) {
			for (int y = entity.tileTop; y <= entity.tileBottom; y++) {
				Ground tile = groundArray[entity.z][x][y];
				if (tile != null) {
					for (int e = 0; e < tile.entityCount; e++) {
						if (tile.interactiveObjects[e] != entity)
							continue;
						tile.entityCount--;
						for (int e2 = e; e2 < tile.entityCount; e2++) {
							tile.interactiveObjects[e2] = tile.interactiveObjects[e2 + 1];
							tile.interactiveObjectsSize[e2] = tile.interactiveObjectsSize[e2 + 1];
						}

						tile.interactiveObjects[tile.entityCount] = null;
						break;
					}

					tile.interactiveObjectsSizeOR = 0;
					for (int e = 0; e < tile.entityCount; e++)
						tile.interactiveObjectsSizeOR |= tile.interactiveObjectsSize[e];

				}
			}
		}
	}