Fixed a bug. Number of black and white ways are not equal