     
     @objc
     private func broadcastData() {
-        var data = NSKeyedArchiver.archivedDataWithRootObject(self.room)
-        self.multipeerManager.broadcastData(data)
+        var data = NSKeyedArchiver.archivedDataWithRootObject(Room.instance)
+        MultipeerManager.instance.broadcastData(data)
         
         data = NSKeyedArchiver.archivedDataWithRootObject(self.connectedPeers)
-        self.multipeerManager.broadcastData(data)
+        MultipeerManager.instance.broadcastData(data)
     }
     
     private func goToGame() {

    // MARK: Lifecycle
    override func viewDidLoad() {
        super.viewDidLoad()
        self.multipeerManager.delegate = self
        
        if player.isHost() {
            self.multipeerManager.initPeerID(room.getRoomName())
            self.multipeerManager.initDiscoveryInfo(["isHost": "yes"])
            self.multipeerManager.initSession()
            self.multipeerManager.initAdvertiser()
            self.multipeerManager.initBrowser()
            
            self.multipeerManager.startAdvertiser()
            self.multipeerManager.startBrowser()
            
            self.startGame.hidden = false
            
            if let peerID = self.multipeerManager.getPeerID() {
                // Host should add itself to the connected peers
                self.connectedPeers[peerID] = self.player.getPlayerUUID()
            }
            
            self.broadcastTimer = NSTimer.scheduledTimerWithTimeInterval(2.0, target: self, selector: #selector(PregameRoomViewController.broadcastData), userInfo: nil, repeats: true)      // Broadcast host's room every 2 seconds

    // MARK: UITableViewDelegate
    func tableView(tableView: UITableView, cellForRowAtIndexPath indexPath: NSIndexPath) -> UITableViewCell {
        let cell = tableView.dequeueReusableCellWithIdentifier(identifier) as! PregameRoomViewCell
        let playerAtIndex = Room.instance.getPlayers()[indexPath.row]
        cell.nameLabel.text = String(indexPath.row + 1) + ". " + playerAtIndex.getPlayerName()
        
        // Determine team switch color
