Added printBoard function