public void sendData(Object message) {
		try {
			output.writeObject(message);
			output.flush();
		}
		catch(IOException ioException) {
			System.err.println("Error sending data. Please try again");
			ioException.printStackTrace();
		}
	}