You should change all your hard-coded numbers to variables. x, y, width, and height. And I would make a separate function for each die number that draws it in the size/location it's told to:


...