allows binary matrix for squares