finished joinGame api