Comments, and switched some loops to foreach.
Player leaving lobby is fixed.

Still need to check that proper threads/sockets are closed though.
Game UI scoreboard updating was incorrect.