add function destroy() to destroy player