added types for print-board function