Separate off drawing routines from xboard.c