Refactored player properties to be readonly.