Fix a bug in join_game action.

Add BadGame exceptoin raising.