added functionality for automatically joining a game as a new player