def find_connection(id)
      connections.each do |_, conn|
        return (conn.connected? ? conn : false) if conn && conn.id == id
      end
      false
    end
def find_connection(id)
      connections.each do |_, conn|
        return (conn.connected? ? conn : false) if conn && conn.id == id
      end
      false
    end
Find the connection based on id and has active connection