Learning to play video games using a deep learning algorithm