When fixing the board orientation, subtract out the local mean when ranking corners to figure out which areblack/white