MIDC
if (row == MIDR && column - MIDC < 2 && MIDC - column < 2) {
move(MIDR, MIDC - 10);
mvaddch(n, MIDC, '|');
mvaddch(n + 6, MIDC, '|');
move(MIDR, MIDC - 10);
mvaddch(n, MIDC, ' ');
mvaddch(n + 6, MIDC, ' ');
mvaddch(n, MIDC + MIDR - n, '/');
mvaddch(n, MIDC - MIDR + n, '\\');
mvaddch(MIDR, MIDC, '*');
mvaddch(n, MIDC + MIDR - n, ' ');
mvaddch(n, MIDC - MIDR + n, ' ');
d = (double) ((row - MIDR) * (row - MIDR) + (column - MIDC) * (column - MIDC));
column += (rnd(9) - 4) % (4 - abs(column - MIDC));