How AI Learns to Play Games