added leave game functionality