draw shapes in buttons based on a matrix rather than css