Adding code for finishing printing the board.