I should have done the math about when to turn, but to save that time I rather built the grid the hard way (which took almost forever to run), but still gave the correct answer. Initially I thought it’s fluent and nice, but seeing your solutions it feels a bit bloated: