prevent nullpointer in joinGame