To install PyGame, open the local terminal in a new PyCharm project. Inside the terminal, type pip install pygame. Wait a while for everything to load, then add the following to the top of your code.
Results that may be inaccessible to you are currently showing.
Hide inaccessible results