Diagonal checking implemented and input finalized; program is finished and fully functional.