Added Intellij project files to be ignored.
Added code from old exitgame branch to start with.
Exiting the game during play will send a LEAVEGAME message.
Message to leave should do all exit-related things.
Fixed Javadoc, did some other commenting too.
Cleaned up showCurrentPlayer method.
Score function now uses foreach loop instead of iterator & while.
UpdateLobbyUi function now uses foreach loop instead of iterator & while.
UpdateLobby function now uses foreach loop instead of iterator & while.

Also, some name refactoring.
Factored out player status panel (in-game) creation from initGameScreen function.
Satisfying the Intellij gods. Apparently the JFrame static var was a ~magic number~!

GASP!
Replace for's and some while's with foreach, removed inline vars.
Messing around with Intellij settings to get imports correct.

Wildcards are evil!
Simplified SocketServerThread read loop.
Added in client-side parsing for leavegame message.

Some other small changes too.
Commenting, some small cleanup.
Implemented code for player exiting the game.

* Updating the server through the protocol in serverprotocol class.
* Reworked in-game scoreboard to support updates to players.
* Added leaveGame function in GameUi to do client-side work.

And it'll be tested tomorrow.. I'm tired.. and have work in the morning :(.
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.