slightly simplified draw_board function