private ArrayList<Sprite> _getSpritesInRectangle(int x, int y, int width, int height, ArrayList<Sprite> Sprites) {
		if (leaf) {
			for (Sprite sprite : this.sprites) {
				if (sprite != null){
					Rectangle rect = sprite.getBoundingBox();
					if (x < rect.getX() + rect.getWidth() && x + width > rect.getX() && y < rect.getY() + rect.getHeight() && y + height > rect.getY()) {
						Sprites.add(sprite);
					}
				} else {
					break;
				}
			}
		} else {
			for (Rtree tree : subTrees) {
				if (x < tree.x1 && x + width > tree.x && y < tree.y1 && y + height > tree.y) {
					Sprites = tree._getSpritesInRectangle(x, y, width, height, Sprites);
				}

			}
		}
		return Sprites;
	}