Created a function to check for diagonal wins in main