fixed bug in connect_game