fix bug with isWhite not being set correctly