 }
 
 enum MatchState: String {
-    case MatchMaking = "match-making", InProgress = "in-progress", finished = "finished"
-}+    case MatchMaking = "match_making", InProgress = "in_progress", finished = "finished"
+}

    var name: String
//    var players: [Player]
    // var rounds: [Round] // not using this yet
//    var state: MatchState
}

let channelKey = "channel"

    init?(json: NSDictionary) {
        if let channel = json[channelKey] as? String,
            let id = json[idKey] as? Int,
            let name = json[nameKey] as? String,
//        let players = json[playersKey] as? [Any],
            let stateString = json[stateKey] as? String,
            let state = MatchState(rawValue: stateString)// MatchState
        {
            self = Match(channel: channel, id: id, name: name, state: state)
        } else {
            return nil
        }
