I have cleaned up the code, but not extensively since most of the gameworld (game objects data and calculation) code will be in the server and all renderer code will be in the client, there is gonna be lots of modification anyway.
I have a few issues which we have to address:
1) mutex locking game data, so that the thread communicating with the server and updating and the thread rendering don't interrupt with each other,
    can potentially cause renderer to be blocked == freeze screen
2) currently, whenever the "coin" sound is played in the game, there will be a lag on the screen. This is very consistent.