represent white/black as 0/1