Added generated serial IDs.
Added reconnect functionality to network lobby.
Refactored code. Remove unused imports.