player is a global variable so it does not need to be passed to the stat function. Changed stat function signature to reflect this.