public void move(Room r, int deltaTime) {
		if (tl.isLocked() == false) {
			randomizeDirection();
		}
		
		switch (getDirection()) {
		case LEFT:
			if (moveX(-1, r, false, deltaTime) == -1) {
				randomizeDirection();
			}
			break;
		case RIGHT:
			if (moveX(1, r, true, deltaTime) == -1) {
				randomizeDirection();
			}
			break;
		case UP:
			if (moveY(-1, r, false, deltaTime) == -1) {
				randomizeDirection();
			}
			break;
		case DOWN:
			if (moveY(1, r, true, deltaTime) == -1) {
				randomizeDirection();
			}
			break;
		default:
			setDirection(AnimationManager.directions.LEFT);
		}
	}