got a working diagonal checker