private void HandleTimerTick(object sender, object e)
{
SecondsPlayed++;
if (_secondsPlayed >= _gameTime)
{
_timer.Stop();
Playing = false;
GameService.RecordGame(_gameTime, _clickCount);
OnGameCompleted();
GameControlsVisibility = Visibility.Visible;
}
else if(!_playing && _secondsPlayed >= 0)
{
Playing = true;
}
}
}