public void run() {

		int nivel = 5000; // 1000 secs. cm tirar isto?
		try {

			switch (Background.loop) {

			case 0:
				nx2 = img.getWidth(null);
				nx = img.getWidth(null)*2;
				for (int j = 0; j != nivel * img.getWidth(null); j++) {
					move();
					sleep(6);
				}
				break;

			case 1:
				ny2 = img.getHeight(null);
				for (int j = 0; j != nivel * img.getHeight(null); j++) {
					move();
					sleep(6);
				}
				break;
			}

		} catch (InterruptedException e) {
			e.printStackTrace();
		}
	}