Refactored PlayerManager into Player class.