Added referenceBoardToString function