 
   run: (@totalBets = 0) ->
     @running = true
-    @symmetricStreak = 0
+    @symmetricStreak ||= 0
     @streak ||= 0
     @client.startRound().then(@placeBet.bind(@))
 

    payout = +(@MAXROLL / rollBelow * kept).toFixed(5)
    [ rollBelow, payout ]

window.SatoshiDiceClient = class SatoshiDiceClient extends BaseClient
  HOUSEEDGE: 1.9
  MAXROLL: 65536.0

  getBalance: ->
    @call('userbalance').then (res) -> res.balanceInSatoshis

  startRound: ->
    @call('startround').then((@round) =>)

      count += 1
    [ count, total ]

window.BaseClient = class BaseClient extends Evented
  MINBET: 100

  @accessor 'balance',
