made modifications; added functions to creating games and joining