logically invert the board using not