PieceColorfinder function should not be public