public void shiftRubiks(String face) {
		
		switch(dir) {
		case "Up"       : shiftUp(grid[0][1]);    break;
		case "Down"     : shiftDown(grid[0][1]);  break;
		case "Left"     : shiftLeft(grid[0][0]);  break;
		case "Right"    : shiftRight(grid[0][0]); break;
		case "RotateC"  : shiftRotate("F", 1);    break;
		case "RotateAC" : shiftRotate("F", 3);    break;
		case "Hor"      : shiftMainHor(face);     break;
		case "Ver"      : shiftMainVer(face);     break;
		default         : break;
		}
		
		last_layout = getCurrentLayout();
		
	}