Updated Objects functions to determine if the entity belongs to the Player class.