Comments to PlayerPi

Added inline comments to PlayerPi to ensure the reader understands the
purpose of all the functions