public GameBattle(boolean online, ObjectInputStream in, ObjectOutputStream out, int id) {
		myOut = out;
		myIn = in;
		myOnlineBoatId = id;
		myOnline = online;
		
		String[] names = readSerializedString("name");
		myName = names[0];
		
		myDraw = new Draw("Boat Game");

		myDraw.setCanvasSize(768, 768);

		// Close the window when the exit button is pressed
		myDraw.frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
		myDraw.frame.setJMenuBar(new JMenuBar());

		// Set the coordinate system
		myDraw.setXscale(-zoom, zoom);
		myDraw.setYscale(-zoom, zoom);
	}