If I wanted a play games with my computer, what components should I pay attention to?

To play games with your PC, you should get a good graphics processor, a screen with sufficient space and refresh rate, and audio acoustics to match your taste, either speakers or a good headset.  If you want to play team sports that have chat, you might want to consider a headset with a microphone.