Fix calcBlackPegs/calcWhitePegs