Behind AI: How AI Learned to Play Games