A Painless Q-Learning Tutorial