var Game = function() {
  this.rolls = [];
  this.bonuses = [];
  this.currentRoll = 0;
};

Game.prototype.roll = function(hits) {
  this.rolls[this.currentRoll++] = hits;
};

Game.prototype.totalGameScore = function() {
  // var totalstrikeBonus = (this._findStrikes() || 0);
  var totalSpareBonus = (this._findSpares() || 0);
  // var totalTwoStrikesbonus = (this._findTwoStrikes() || 0);
  var totalScore = this.rolls.reduce(add, 0);
  function add(a, b) {
    return a + b;
  } return totalScore + totalSpareBonus + this._findStrikes();
};

Game.prototype.currentGameRoll = function() {
  var roll = (this.currentRoll);
  return roll;
};

Game.prototype.currentGameFrame = function() {
  var frame = (Math.round(this.currentRoll / 2));
  return frame;
};

Game.prototype._findStrikes = function() {
  var totalStrikeBonus = totalStrikeBonus || 0;
  for (i = 0; i < this.rolls.length; i++) {
    if (i % 2 == 0) {
      if (this.rolls[i] === 10) {
        totalStrikeBonus = totalStrikeBonus + ((this.rolls[i + 2] || 0 ) + (this.rolls[i + 3] || 0 ));
      }
    }
  } return totalStrikeBonus;
};

Game.prototype._findTwoStrikes = function() {
  var totalTwoStrikes = totalTwoStrikes || 0;
  for (i = 0; i < this.rolls.length; i++) {
    if (i % 2 == 0) {
      if ((this.rolls[i] === 10) && (this.rolls[i + 2] === 10)) {

      }
    }
  } return totalTwoStrikes;
};

Game.prototype._findSpares = function() {
  for (i = 0; i < this.rolls.length; i++) {
    if ((i % 2 != 0)) {
      if ((this.rolls[i] + this.rolls[i - 1] === 10) && (this.rolls[i - 1] != 10)) {
        return (this.rolls[i + 1]);
      }
    }
  }
};

@@ -532,18 +532,43 @@
 trikes()
+ + this._findTwoStrikes()
 ;%0A
-
 %7D;%0A%0AGame
@@ -944,16 +944,17 @@
      if 
+(
 (this.ro
@@ -967,16 +967,43 @@
  === 10)
+ %7C%7C (this.rolls%5Bi%5D === 20))
  %7B%0A     
@@ -1067,17 +1067,16 @@
  2%5D %7C%7C 0
- 
 ) + (thi
@@ -1094,17 +1094,16 @@
  3%5D %7C%7C 0
- 
 ));%0A    
@@ -1369,16 +1369,43 @@
  10)) %7B%0A
+        this.rolls%5Bi%5D = 20;
 %0A      %7D

need to refactor total scores