public void run() {

		while(active)
		{
			try {
				byte[] requestEncrypted = (byte[]) input.readObject();
				String requestDecrypted = encryption.decrypt(requestEncrypted);
				System.out.println("Request: " + requestDecrypted);
				String reply = serverSwitch.giantSwitchMethod(requestDecrypted);
				System.out.println("Reply: " + reply);
				output.writeObject(encryption.encrypt(reply));
				output.flush();
			} catch (IOException e) {
				terminate();
			} catch (ClassNotFoundException e) {
				e.printStackTrace();
			}
		}
	}