Refactored game code to have a simpler structure and loop.

Added networking classes to allow the sending and receiving of packets.
Game now sends all input as network packets and uses received network packets to set the position of objects.