This is a long data, sorting, lagged cummax solution I realised was possible for day 8 of #adventofcode in #rstas so rather than for each place check the squares in each direct, this is for everything check everything in the sorted direction. I prefer this approach personally as it feels more mass operation on the data.