private void SolveProblem(object sender, RoutedEventArgs e) { GameField = helpService.Simplification(GameField); if (!helpService.CheckGameBoard(GameField)) { gameService.solveCurrentProblem(GameField); GameField = gameService.getField(); } UpdateGameField("ToText"); }