Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Okay please fix the diagonal issue also. Actually in logic i have taken care of that condition also but I think its due to some small syntax or logic mistake the diagonal is not being recognized. In my testing I actually missed this condition. Thank you for finding it.