updating function name for joinGame