Closed energy loop

The Twelfth Doctor initially believed that the castle within the confession dial was inside a closed energy loop. (TV: Heaven Sent)