added JSDoc style documentation for global variables
added JSDoc style comments to the Player class