refactor Board out of output