Complex sentence: Working on the Holodeck's circuitry, Wesley finds a way to shut the program down, but it risks the individuals inside, explaining the trapped crew have actually become part of the program, and are now energy patterns like everything else around them.
Split into simpler sentences: Working on the Holodeck's circuitry, Wesley finds a way to shut the program down; however, it will also put the individuals inside at risk. He explains that the trapped crew have actually become part of the program and are now energy patterns like everything else around them.