public int[] expandAmount(Sprite sprite) {
		Rectangle rect = sprite.getBoundingBox();
		int[] amount = new int[] { 0, 0, 0, 0 };
		if (rect.getX() < x) {
			amount[0] = (int) (x - rect.getX());
		}
		if (rect.getX() + rect.getWidth() > x1) {
			amount[2] = (int) (rect.getX() + rect.getWidth() - x1);
		}

		if (rect.getY() < y) {
			amount[1] = (int) (y - rect.getY());
		} else if (rect.getY() + rect.getHeight() > y1) {
			amount[3] = (int) (rect.getY() + rect.getHeight() - y1);
		}
		// expandTotal = (amount[0] + amount[2]) * (amount[1] + amount[3]);
		expandTotal = amount[0] + amount[2] + amount[1] + amount[3];
		return amount;
	}