When I was thinking "ok, I have a good strategy to go forever and ever", and then... Diagonal ones! "Nooooooo!!"
You've reached very far!