A redstone repeater is turned ON by any powered part at its back again and is also unaffected through the run point out of any block beside, over, underneath, or in front of it (but see under about locking a repeater). To keep the engine On this excellent point https://vanshgamer.com/minecraft-redstone-engine/