private void SetAlgorithm(AlgorithmViewModel algorithm) { AlgorithmType = algorithm.Value; Game = new Game(Variation, AlgorithmType); RefreshAlgorithms(); ResetUndoAndRefresh(); }