diff --git a/21g30t1e75.js b/21g30t1e75.js index 3268b0e..16db187 100644 --- a/21g30t1e75.js +++ b/21g30t1e75.js @@ -190,12 +190,12 @@ GameLib.CustomCode.prototype.advanceSnake = function(delta) { this.snake = this.snake.reduce( function(result, body, index) { - if ((index + 1) > this.snake.length) { + if ((index + 1) === this.snake.length) { /** * we're done */ return result; - } else if ((index + 1) === this.snake.length) { + } else if ((index) === this.snake.length) { /** * Pop it */