The Doctor traces the scientists to Irongron's castle, where they have been put to work repairing a spaceship and creating weapons