Quantum machine learning with glow for episodic tasks and decision games