The most important part of this project was the modeling of classes for communication and integrating their objects into the game. The detailed code for the method that is called when a key is pressed is as given below. In this method, the value of the particular key pressed is passed to the remote player using "host.sendObject(1,result)". This is used to update the eater position on the remote player's screen.