added the beginnings of the functions for the lobby