     }
     
     func tableView(tableView: UITableView, numberOfRowsInSection section: Int) -> Int {
-        return self.room.getNumberOfPlayers()
+        return Room.instance.getNumberOfPlayers()
     }
     
     // MARK: MultipeerManagerDelegate
     func foundPeer(peerID: MCPeerID, withDiscoveryInfo info: [String : String]?) {
-        if let info = info where info["joinRoom"] == room.getRoomName() {
+        if let info = info where info["joinRoom"] == Room.instance.getRoomName() {
             // Invite peer that explicitly advertised discovery info containing joinRoom entry that has the name of the host room
-            self.multipeerManager.invitePeerToSession(peerID)
+            MultipeerManager.instance.invitePeerToSession(peerID)
         }
     }
     

    }
    
    func tableView(tableView: UITableView, didSelectRowAtIndexPath indexPath: NSIndexPath) {
        let playerAtIndex = self.room.getPlayers()[indexPath.row]
        let team = playerAtIndex.getTeam()
        if let clueGiverUUID = self.room.getClueGiverUUIDForTeam(team) {
            self.room.getPlayerWithUUID(clueGiverUUID)?.setIsClueGiver(false)
        }
        self.room.getPlayers()[indexPath.row].setIsClueGiver(!playerAtIndex.isClueGiver())
        self.broadcastData()
    }
    

        
        self.refreshTimer = NSTimer.scheduledTimerWithTimeInterval(1.0, target: self, selector: #selector(PregameRoomViewController.refreshView), userInfo: nil, repeats: true)     // Refresh room every second
        
        roomNameLabel.text = Room.instance.getRoomName()
    }
    
    override func viewWillDisappear(animated: Bool) {
        if Player.instance.isHost() {
            self.broadcastTimer?.invalidate()
        }
        self.refreshTimer?.invalidate()
