reading separate inputs on digital pins, storing order and replaying as output

That circuit can destroy your arduino. If you output low and someone pushes the put ton then you will blow the output pin of the chip.