function to print board completed