public void handleNetwork() throws IOException, ClassNotFoundException {
		if (myOnline) {
			// Do all of this if the game is over the Internet
			for (Boat b : myBoats) {
				// If the boat is of the id that this computer received from the server
				// This computer is responsible for updating the boat with 
				// the id received from the server
				if (b.myPID == myOnlineBoatId) {
					// Put all the boat's data into an array and send it to the server
					double[] arrayToSend = {b.myX, b.myY, b.myPID, b.myAngle};
					myOut.writeObject(arrayToSend);
					myOut.writeBoolean(b.shouldFireLeft());
					myOut.writeBoolean(b.shouldFireRight());
					myOut.writeUTF(myName);
					myOut.flush();
					
					// Display the name above the player
					myDraw.setPenColor(Color.GREEN);
					myDraw.text(b.myX, b.myY, myName);
				} else {
					// Make sure the boat which this computer is not responsible for
					// doesn't get any key inputs (it cannot be affected by the other computers)
					if (b instanceof PlayerBoat) {
						((PlayerBoat) b).myReceivesKeyInputs = false;
					}
					// Set the boat to have the coordinates and 
					// characteristics of the received array
					double[] receivedArray = (double[]) myIn.readObject();
					boolean left = myIn.readBoolean();
					boolean right = myIn.readBoolean();
					String name = myIn.readUTF();
					for (Boat b1 : myBoats) {
						if (b1.myPID == receivedArray[2]) {
							b1.myX = receivedArray[0];
							b1.myY = receivedArray[1];
							b1.myAngle = receivedArray[3];
							if (right) {
								b1.fireRightGuns();
							}
							
							if (left) {
								b1.fireLeftGuns();
							}
							
							// Display the name of the player
							myDraw.setPenColor(Color.GREEN);
							myDraw.text(b1.myX, b1.myY, name);
						}
					}
				}
			}
		}
	}