public void goToFront() {
		
		int amount = tofront.size();
		
		if(amount == 0) {repaint(); return;} //Already using front layout - repaint incase called by shuffle
		
		for(int i=amount;i>0;i--) {
			
			switch(tofront.get(i-1)) {
			case 1 : shiftMainVer("U"); break;
			case 2 : shiftMainVer("D"); break;
			case 3 : shiftMainHor("L"); break;
			case 4 : shiftMainHor("R"); break;
			default: break;
			}
			
		}
		
		String[] face   = {"F", "R", "B", "L", "U", "D"};
		for(int i=0;i<6;i++) {rubiks.setText(face[i]+":2:2", face[i]);}
		
		for(int i=0;i<3;i++) {
			grid[i][0] = -1;
			grid[i][1] = -1;
		}
		
		main_grid.setColor(color_bg);
		
		tofront = new ArrayList<Integer>();
		repaint();
		
	}