Don't reset the variable before you pass it in to game.reset() ...