Reinforcement learning to play the game Snake