IMPORTANT COMMIT: this is the last commit before I rework all the Client
network functions to route through the handlePacket function.