private void ResetLevel() { if (onGame) { pedometer.StartCapturing(); } onGame = false; sessionTime = 0; pedometer.steps = 3; }