 
 void EndGame()
 {
+  if(sound == true)
+  {
     arduboy.tunes.tone(200, 200);
     delay(400);
     arduboy.tunes.tone(100, 400);
     delay(600);
     arduboy.tunes.tone(50, 2000);
-    gameRunning = false;
+  }
+    
+  gameState = 'E';
 }
 
 void CollisionDetection()

  // here we set the framerate to 15, we do not need to run at
  // default 60 and it saves us battery life
  arduboy.setFrameRate(30);

 StartGame(); 
}



  }

  
  gameState = 'G';
}

void LogMove()
