added a centerOfCellInPixels method and drawing many buttons