Fixed bugs and cleaned up code in LobbyServer