who is the captain twice upon a time