new function printBoard