Replaced false = running with this.endGame()