USS Triumphant wrote:
...inside Moriarty's little holodeck cube from the TNG episode "Ship In A Bottle". Explains all the weirdness with sentient and semi-sentient holograms, time travel that shows a history inconsistent with what had already been shown in TOS and TNG, and all sorts of other stupidity.
Well, whadya think?
They mention Moriarty in the 3rd Season episode Alter Ego