fixed color bugs

didn't transfer type and id when moving squares