Able to print chessboard in both odd and even cases, but its throwing The program needs to display the elements of the array on the screen error