         socket.join(gameid)
         socket.gameid = gameid
         socket.emit("netrunner", {type: "game", gameid: gameid})
-        lobby.emit('netrunner', {type: "games", games: games})
+        refreshLobby()
 
       when "leave-lobby"
         gid = socket.gameid

      requester.send(JSON.stringify({action: "remove", gameid: socket.gameid}))
    socket.leave(socket.gameid)
    socket.gameid = false
    lobby.emit('netrunner', {type: "games", games: games})
  for k, v of games
    delete games[k] if v.players.length < 2 and (new Date() - v.date) > 3600000


          socket.join(msg.gameid)
          socket.gameid = msg.gameid
          socket.emit("netrunner", {type: "game", gameid: msg.gameid, started: game.started})
          refreshLobby()
          if game.started
            requester.send(JSON.stringify({action: "notification", gameid: msg.gameid, text: "#{getUsername(socket)} joined the game as a spectator."}))
          else
