Added functions.

Also changed Lobby class to interface.