private void rotateToPosition(int position) {
		while (rotation != position) {
			try {
				Thread.sleep(200);
			} catch (InterruptedException e) {}
			if (rotation > position) rotation--;
			else rotation++;
			rotate();
			repaint();
		}
		try {
			Thread.sleep(1000);
		} catch (InterruptedException e) {}
		pathwayOrdered = false;
	}