Text this: A Lyapunov Function Approach to Dynamic Stable Matching in A Multi-agent System