Changed object to player attribute