added functions to server to maintain game lobbies and client side to interface with server for lobby functions