public void run()
    {
        boolean isRunning = true;
        while (isRunning) {
            try
            {
                // Get the message data (MagnetObject)
                MagnetObject m = (MagnetObject) this.input.readObject();
                // Check if client (Kid) has disconnected
                if (m == null)
                {
                    // Has disconnected
                    System.out.println("Disconnected.");
                    this.fridge.disconnect(this);
                    // Stop running this Connection loop.
                    isRunning = false;
                }
                // Emit the magnet data to the Fridge
                this.fridge.sendMagnet(m);
            }
            catch (Exception localException) {
                
            }
        }
    }