private async void OnGameWin()
        {
            timer.Stop();
            if (currentLevel != null)
            {
                await statisticManager.AddGame(new TimeSpan(0, 0, time), true, currentLevel.Id);
            }
            GameOverWindow gameOverWindow = new GameOverWindow();

            gameOverWindow.DataContext = new GameOverViewModel(isGameWin: true);
            if (gameOverWindow.ShowDialog() == true)
            {
                this.Close();
            }
            else
            {
                NewGame();
            }
        }