Add 'leave game' function. Improve UI. Syntax corrected.