Implemented graphical animation for pulsing gates, close #1390
Fixed lit stage of gates, for #1401