public int[] getCurrentLayout() {
		
		String[] face   = {"F", "R", "B", "L", "U", "D"};
		Color[]  colors = {color_red, color_green, color_orange, color_blue, color_yellow, color_white};
		int[]    layout = new int[6];
		
		//Gets layout of grids on screen
		for(int i=0;i<6;i++) { //Loop for each face
			for(int n=0;n<6;n++) { //Loop for each color
				if(rubiks.compareColor(face[i]+":2:2", colors[front[0][n]])) {
					layout[i] = n;
				}
			}
		}
		
		return layout;
		
	}