IconGates now have an id
Undo and redo working horizontaly
Bug in wires redrawing