added some error handling for a few conditions around creating games and joining games