A redstone repeater is turned ON by any run component at its back again and it is unaffected via the powered point out of any block beside, higher than, beneath, or before it (but see below about locking a repeater). On top of that, when setting up your engine, https://vanshgamer.com/minecraft-redstone-engine/