public void update(Observable observable, Object arg) {
if (observable instanceof CubeModel) {
CubeModel cubeModel = (CubeModel) observable;
System.out.println("Update CubeView - " + observable);
Algo tmpAlgo = calculateTemporaryAlgoMoves(cubeModel.getAlgo(), cubeModel.getLastLayerMove());
ColorScheme tmpColorScheme = calculateTemporaryColorScheme(cubeModel.getColorScheme(), cubeModel.getCubeRotation());
setMesh(RubiksCube.getScrambledPuzzleMesh(tmpColorScheme, tmpAlgo));
}
}