fixed errors in joinGame and added extra integration tests