generified printBoard