Text this: A Q-Learning-Based Approach for Simple and Multi-Agent Systems