Bottom Left - /execute @e[type=EntityHorse] ~ ~1 ~ summon EntityHorse ~ ~1 ~ {Type:0,Motion:[0.0,1.0,0.0],Variant:0,ActiveEffects:[{Ambient:1,Amplifier:0,Duration:999999,Id:12}]}
Top Left - tp @e[type=EntityHorse,name=Ghostrider] ~ -200 ~
Bottom Right - /execute @e[type=EntityHorse] ~ ~1 ~ summon EntityHorse ~ ~ ~ {CustomName:"Ghostrider",CustomNameVisible:1,Type:4,Tame:1,Motion:[0.0,1.0,0.0],SaddleItem:{id:329},ActiveEffects:[{Ambient:1,Amplifier:0,Duration:999999,Id:12}]}
Top Right - tp @e[type=EntityHorse,name=!Ghostrider] ~ -200 ~
Other 3 command blocks
Bottom Left - setblock ~1 ~ ~ air 0 replace (you may need to switch this with the bottom right command block)
Bottom Right - setblock ~-1 ~ ~ minecraft:redstone_block 0 replace (you may need to switch this with the bottom left command block)
Top - /execute @e[name=Ghostrider] ~ ~ ~ setblock ~ ~ ~ fire 0 keep