Text this: An Improved Q-Learning Algorithm and Its Application in Path Planning