Cleaning up network client and server code as well as graphics engine