     if me.id is @realTimeSessionData.creator
       sessionState = @session.get('state')
       if sessionState?
-        submissionCount = sessionState.submissionCount
+        submissionCount = sessionState.submissionCount ? 0
         console.info 'Setting multiplayer submissionCount to', submissionCount
         @realTimeSessionRef.update 'submissionCount': submissionCount
       else

    data = snapshot.val()
    if data? and data.id isnt me.id
      @realTimeOpponentData = data
      console.log 'PlayLevelView onRealTimePlayerAdded opponent', @realTimeOpponentData, @realTimePlayersData
      @realTimePlayersData[@realTimeOpponentData.id] = @realTimeOpponentData
      if @realTimeSessionData?.state is 'creating'
        @realTimeSessionRef.update 'state': 'coding'

    #   console.error 'Joining real-time multiplayer game with an existing @realTimeSessionRef.'

  onRealTimeMultiplayerJoinedGame: (e) ->
    # console.log 'PlayLevelView onRealTimeMultiplayerJoinedGame', e
    @joinRealTimeMultiplayerGame e
    @realTimePlayerGameRef.update 'state': 'coding'
    @realTimePlayerRef.update 'state': 'unavailable'
