def fixColors(argdata):
 refcolor = argdata[0][0]
 if (refcolor == '+'):
  for i in range(len(data)):
   argdata = flipCol(argdata, i)
 return argdata

def fixColors ( argdata ) : refcolor = argdata [ 0 ] [ 0 ] if ( refcolor == '+' ) : for i in range ( len ( data ) ) : argdata = flipCol ( argdata , i ) return argdata
invert entire image to make sure the top left corner has a - and not + .