You just place the big code block in any actor you like. Trigger it with a key or a timer ever 5 seconds to test maybe.