Installing pygame
1. Installing Brew. If brew is already installed, skip this step.
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
2. Updating brew.
brew update
3. Installing pygame
brew install pygame