printBoard: fix file print