added leave game and join game functionality, along with other adjustments/fixes