Implemented diagonal paths on Circuit