got the diag code in but bugs not workig

program is not working with the diagnal code added here, anyone can help
is appreciated