Split back-endish part off drawing code and move to board.c