More Colorful, fixed troublesome bugs when cols != rows, fixed bugs with cord when add_gate