comments and stuff

added some comments to main and made some functions in player private