as soon as the two ships are side by side and gray wolf is talking to their captain , black beard appears , the dutch flag is quickly taken down and a black flag with a white skeleton , its black pitch fork pointing toward a red heart is hoisted in its place .