did not account for the way being blocked at the start. sometimes blocks cover the way and the algorithm glitches