I have written a code for the drawing board for the minesweeper game, can anyone help me to refactor this code more.
Please find my code bellow
def draw(he