fix bug when playing as black