Click the + icon to expand Legacy Components. Check the box next to DirectPlay .
If the Control Panel method hangs or you prefer a more direct approach, you can use the Deployment Image Servicing and Management (DISM) tool. install directplay
If you encounter issues during or after installing DirectPlay: Click the + icon to expand Legacy Components