public void connect() throws UnknownHostException, IOException, ClassNotFoundException {
		// Show a popup which asks for the ip address
		myIpAddress = JOptionPane.showInputDialog("Enter the IP Address to connect to");
		JOptionPane.showMessageDialog(null, "Connecting to " + myIpAddress + "...");
		
		// Connect to the server at port 4545 (all boat game servers are hosted at this port)
		mySocket = new Socket(myIpAddress, 4545);
		System.out.println("Connection successful");
		
		// Create the input and output streams to communicate with the server
		myIn = new ObjectInputStream(mySocket.getInputStream());
		myOut = new ObjectOutputStream(mySocket.getOutputStream());
		
		// Create a Game instance
		// All client-server communications will be handled by the Game class
		GameBattle game = new GameBattle(true, myIn, myOut, 1);
		//Thread t = new Thread(game);
		//t.start();
		game.loop();
	}