added gates recycle bin

fixed a bug with deleting wires