public void stopMoving(Direction dir) {
		boolean foundDir = false;
		for(int i = 0; i < queuedMoveDirectionPreferences.length - 1; i++) {
			if(!foundDir && queuedMoveDirectionPreferences[i] == dir)
				foundDir = true;
			if(foundDir)
				queuedMoveDirectionPreferences[i] = queuedMoveDirectionPreferences[i + 1];
		}
		queuedMoveDirectionPreferences[queuedMoveDirectionPreferences.length - 1] = null;
	}