refactor code
refactor code

file:a/index.html -> file:b/index.html
--- a/index.html
+++ b/index.html
@@ -28,7 +28,7 @@
       <div class="game-message">
         <p></p>
         <div class="lower">
-	  <a class="keep-playing-button">Keep playing</a>
+	        <a class="keep-playing-button">Keep playing</a>
           <a class="retry-button">Try again</a>
         </div>
       </div>

--- a/js/game_manager.js
+++ b/js/game_manager.js
@@ -15,25 +15,23 @@
 
 // Restart the game
 GameManager.prototype.restart = function () {
-  this.actuator.restart();
+  this.actuator.continue();
   this.setup();
 };
 
 // Keep playing after winning
 GameManager.prototype.keepPlaying = function () {
   this.keepPlaying = true;
-  this.actuator.keepPlaying();
-};
-
-GameManager.prototype.isGameOver = function() {
-  if (this.over || (this.won && !this.keepPlaying) ) {
+  this.actuator.continue();
+};
+
+GameManager.prototype.isGameOver = function () {
+  if (this.over || (this.won && !this.keepPlaying)) {
     return true;
-  }
-  else {
+  } else {
     return false;
   }
-}
-
+};
 
 // Set up the game
 GameManager.prototype.setup = function () {

--- a/js/html_actuator.js
+++ b/js/html_actuator.js
@@ -32,11 +32,8 @@
   });
 };
 
-HTMLActuator.prototype.restart = function () {
-  this.clearMessage();
-};
-
-HTMLActuator.prototype.keepPlaying = function () {
+// Continues the game (both restart and keep playing)
+HTMLActuator.prototype.continue = function () {
   this.clearMessage();
 };
 

comments