         currentBlock = currentBlock?.createChild(blockId: blockId)
             ?? Block(parent: nil, id: blockId)
     }
-    
+
     func blockEnd() {
         currentBlock = currentBlock?.parent
         if let entity = eventHandler.entities[currentEntityId] {
             entity.info.hasOutstandingTagChanges = false
         }
     }
-    
+
     private var maxBlockId: Int = 0
     private var currentBlock: Block?
-    
+
     // MARK: - line handling
 
     func handle(logLine: LogLine) {

                let id = Int(match.value) {
				let entity = Entity(id: id)
                eventHandler.add(entity: entity)
				
                if eventHandler.wasInProgress {
                    //game.entities[id]?.name = game.getStoredPlayerName(id: id)
                }

    let PlayerEntityRegex: RegexPattern = "Player EntityID=(\\d+) PlayerID=(\\d+) GameAccountId=(.+)"
    let PlayerNameRegex: RegexPattern = "id=(\\d) Player=(.+) TaskList=(\\d)"
    let TagChangeRegex: RegexPattern = "TAG_CHANGE Entity=(.+) tag=(\\w+) value=(\\w+)"
    let UpdatingEntityRegex: RegexPattern = "(SHOW_ENTITY|CHANGE_ENTITY) - Updating Entity=(.+) CardID=(\\w*)"

    var tagChangeHandler = TagChangeHandler()
    var currentEntity: Entity?

	private unowned(unsafe) let eventHandler: PowerEventHandler

	init(with eventHandler: PowerEventHandler) {
		self.eventHandler = eventHandler
	}

    // MARK: - Entities

    private var currentEntityId = 0

    func resetCurrentEntity() {
        currentEntityId = 0
    }

    // MARK: - blocks
    func blockStart() {
        maxBlockId += 1
